Please follow the below steps to upgrade Bahmni from Release 2.1.1 to 2.1.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.
Replace the bahmni-endtb omod:
sudo service openmrs stop
cd /opt/openmrs/modules
sudo rm -rf bahmniendtb-*
sudo wget https://github.com/DWB-eHealth/openmrs-module-bahmniendtb/releases/download/2.1.2/bahmniendtb-2.1.1.omod
sudo chown bahmni:bahmni bahmniendtb-2.1.1.omod
Copy the latest endtb-config folder to the location /etc/bahmni-installer/deployment-artifacts
Once setup.yml is downloaded ensure that the timezone field is updated with the actual server timezone.
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.
#Download inventory file for TBEMR
sudo wget https://raw.githubusercontent.com/DWB-eHealth/endtb-config/2.1.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/DWB-eHealth/endtb-config/2.1.2/playbooks/examples/setup.yml -O /etc/bahmni-installer/setup.yml
sudo yum clean all
sudo bahmni -i inventory update-config
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 TBMER Bahmni 2.1.2
Please follow the below steps to install Bahmni from Release 2.1.1 with the base database dump provided for TBEMR
Prerequisite for the fresh installation
# Prerequisite for the fresh installation of Bahmni
yum install python-setuptools
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.
#Download inventory file for TBEMR
sudo wget https://raw.githubusercontent.com/DWB-eHealth/endtb-config/2.1.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/DWB-eHealth/endtb-config/2.1.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