Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Upgrade endTB Bahmni from 1.2 to 1.3

Please follow the below steps to upgrade Bahmni from Release 1.2 to 1.3

  1. Download bahmni-installer and run it using the following commands


    Code Block

...

  1. languagebash
    sudo

...

  1.  yum remove -y ansible

...

  1. 
    sudo

...

  1.  yum remove -y bahmni-installer

...

  1. 
    sudo yum install -y https://

...

  1. dl.

...

  1. bintray.com/bahmni/rpm/

...

  1. rpms/bahmni-installer-0.83-

...

  1. 142.noarch.rpm
  2. Take a backup of the current database and implementation_config directory before proceeding forward
    Note: You can also use your own way of taking backup if you have one in place.


    Code Block
    language

...

  1. bash
    cd /etc/bahmni-installer/
    sudo bahmni -i inventory db-backup

...

  1. 
    cp

...

  1.  -

...

  1. R /var/www/implementation_config

...

  1.  ~/implementation_config_backup
  2. Copy the latest endtb-config folder to the location /etc/bahmni-installer/deployment-artifacts


    Code Block
    language

...

  1. bash
    cd

...

  1.  /etc/bahmni-installer/deployment-artifacts

...

  1. 
    sudo

...

  1.  rm

...

  1.  -

...

  1. rf /etc/bahmni-installer/deployment-artifacts/release-0.

...

  1. 82.zip

...

  1. 
    sudo

...

  1.  rm

...

  1.  -

...

  1. rf /etc/bahmni-installer/deployment-artifacts/endtb_config

...

  1. 
    sudo

...

  1.  wget https://github.com/Bahmni/endtb-config/archive/release-0.83.zip

...

  1. 
    sudo

...

  1.  unzip release-0.83.zip

...

  1. 
    sudo

...

  1.  mv

...

  1.  endtb-config-release-0.83 endtb_config
  2. Copy the inventory file from here to /etc/bahmni-installer.  Ensure that the previously existing inventory file is updated with the latest one.  The setup.yml file is downloaded using the below commands. Once it is downloaded ensure that the timezone field is updated with the actual server timezone.


    Code Block
    language

...

  1. bash
    sudo

...

  1.  wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/inventory

...

  1.  -

...

  1. O /etc/bahmni-installer/inventory

...

  

...

  1. 
      
    #Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step

...

  1. 
    sudo

...

  1.  wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/setup.yml -

...

  1. O /etc/bahmni-installer/setup.yml

...

  1. 
    cd

...

  1.  /etc/bahmni-installer

...

  1. 
    sudo

...

  1.  yum clean all

...

  1. 
    sudo

...

  1.  bahmni -i

...

  1.  inventory install

...

  1. 
    sudo bahmni --implementation_play=/var/www/bahmni_config/playbooks/all.yml -i inventory install-impl

...

 
#Run the batch program for the first time
sudo su bahmni
  1. 
     
    #Run the batch program for the first time
    sudo su -s /bin/bash bahmni
    /usr/bin/bahmni-batch

Fresh installation of endTB Bahmni 1.3

Please follow the below steps to install Bahmni from Release 1.3 with the base database dump provided for endTB

  1. Install the bahmni-installer along with its pre-requisite software using the following commands

    Code Block
    language

...

  1. bash
    sudo

...

  1.  yum install -y unzip wget

...

 

...

  1. 
    sudo yum install -y https://

...

  1. dl.

...

  1. bintray.com/bahmni/rpm/

...

  1. rpms/bahmni-installer-0.83-

...

  1. 142.noarch.rpm
  2. Copy the latest endtb-config folder and base database dump (from endtb-config folder) to the location /etc/bahmni-installer/deployment-artifacts

...


  1. Code Block
    languagebash
    cd

...

  1.  /etc/bahmni-installer/deployment-artifacts

...

  1. 
    sudo

...

  1.  rm

...

  1.  -

...

  1. rf /etc/bahmni-installer/deployment-artifacts/endtb_config

...

  1. 
    sudo

...

  1.  wget https://github.com/Bahmni/endtb-config/archive/release-0.83.zip

...

  1. 
    sudo

...

  1.  unzip release-0.83.zip

...

  1. 
    sudo

...

  1.  mv

...

  1.  endtb-config-release-0.83 endtb_config

...

  1. 
    cp

...

  1.  endtb_config/dbdump/mysql_dump.sql openmrs_backup.sql



  2. Copy the inventory file from here to /etc/bahmni-installer.  Ensure that the previously existing inventory file is updated with the latest one.  The setup.yml file is downloaded using the below commands. Once it is downloaded ensure that the timezone field is updated with the actual server timezone.


    Code Block
    language

...

  1. bash
    sudo

...

  1.  wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/inventory

...

  1.  -

...

  1. O /etc/bahmni-installer/inventory

...

  

...

  1. 
      
    #Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step

...

  1. 
    sudo

...

  1.  wget https://raw.githubusercontent.com/Bahmni/endtb-config/release-0.83/playbooks/examples/setup.yml -

...

  1. O /etc/bahmni-installer/setup.yml

...

  1. 
    cd

...

  1.  /etc/bahmni-installer

...

  1. 
    sudo

...

  1.  bahmni -i

...

  1.  inventory install

...

  1. 
    sudo bahmni --implementation_play=/var/www/bahmni_config/playbooks/all.yml -i inventory install-

...

 
#Run the batch program for the first time
sudo su bahmni
  1. impl 
     
    #Run the batch program for the first time
    sudo su -s /bin/bash bahmni
    /usr/bin/bahmni-batch
Tip
iconfalse
titleOn this page

Table of Contents