Releases 2.0.1 and 2.0.2 are patch releases on top of 2.0.0 and as such we have simply updated the deployment steps to reflect the 2.0.2 release. Both 2.0.1 and 2.0.2 comprised of only minor patches, see the release notes for more details here.
Upgrade endTB Bahmni from 1.5.1 to 2.0.2
Please follow the below steps to upgrade Bahmni from Release 1.5.1 to 2.0.2
Download bahmni-installer and run it using the following commands
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.
Copy the inventory file as per the steps below. 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.
#Manually patching the Oracle Java playbook due to deprecation of old download links.
sudo wget https://raw.githubusercontent.com/Bahmni/bahmni-playbooks/release-0.89/roles/oracle-java/defaults/main.yml -O /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/defaults/main.yml
#Download inventory file for endTB
sudo wget https://raw.githubusercontent.com/Bahmni/endtb-config/2.0.2/playbooks/examples/inventory -O /etc/bahmni-installer/inventory
#Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step
sudo wget https://raw.githubusercontent.com/Bahmni/endtb-config/2.0.2/playbooks/examples/setup.yml -O /etc/bahmni-installer/setup.yml
sudo yum clean all
sudo bahmni -i inventory install
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 -s /bin/bash bahmni
/usr/bin/bahmni-batch
Please restart openmrs after the upgrade
sudo service openmrs restart
Fresh installation of endTB Bahmni 2.0.2
Please follow the below steps to install Bahmni from Release 2.0.2 with the base database dump provided for endTB
Install the bahmni-installer along with its pre-requisite software using the following commands
Copy the latest endtb-config folder and base database dump (from endtb-config folder) to the location /etc/bahmni-installer/deployment-artifacts. Please run the commands mentioned below.
Copy the inventory file as per the steps below. Ensure that the previously existing inventory file is updated with the latest one.
Once setup.yml is downloaded ensure that the timezone field is updated with the actual server timezone.
#Manually patching the Oracle Java playbook due to deprecation of old download links.
sudo wget https://raw.githubusercontent.com/Bahmni/bahmni-playbooks/release-0.89/roles/oracle-java/defaults/main.yml -O /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/defaults/main.yml
#Download inventory file for endTB
sudo wget https://raw.githubusercontent.com/Bahmni/endtb-config/2.0.2/playbooks/examples/inventory -O /etc/bahmni-installer/inventory
#Change the timezone parameter in /etc/bahmni-installer/setup.yml after the below step
sudo wget https://raw.githubusercontent.com/Bahmni/endtb-config/2.0.2/playbooks/examples/setup.yml -O /etc/bahmni-installer/setup.yml
sudo yum clean all
sudo bahmni -i inventory install
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 -s /bin/bash bahmni
/usr/bin/bahmni-batch