About GNU Health Upgrades
GNU Health is in constant development. Upgrades fix bugs and keep your system with the latest functionality. Therefore, you are advised to keep your production system with the latest version.
GNU Health will always provide the scripts and tools for you to keep your health center updated.
Get the latest GNU Health versions and announces: A key point to keep your GNU Health environment in good shape is to become part of the community. We publish GNU Health version updates and other relevant news in different media. Make sure you subscribe at least to the General users and to the health announce mailing lists.
Verify your current GNU Health version: You can check your current GNU Health database version from the client, via Administration → Modules.
Always upgrade all the GNU Health modules: When we release a version, we always pack all the official modules on it. This is important, because we test the integrity and cross-functionality among modules. So, you should never use modules from different versions. For example, you should not use health_genetics version 1.6.3 with health 1.6.2 . This is not supported and can create serious inconsistencies on your database!
Prepare your Upgrade
Plan your upgrade process, resources and downtime: Upgrading a hospital information system requires careful planning. Make sure you choose the right time, and notice your colleagues about the new release.
Test the upgrade process in another computer: It is highly recommended that you count with a separate server, where you can test your upgrade process in a controlled environment, without impacting your production installation. Write down all the steps and issues that you run into.
The Upgrade Process
This section summarizes the upgrade process steps for a standard installation, using the modules included in the official release at GNU.org FTP site. Any version specific information will sent via the email@example.com mailing list, along the new release announcement, so make sure you are subscribed!
||BACKUP YOUR INSTANCE !
Backup the database, attachments and kernel (modules)
Step 1: Stop your Tryton server.
Step 2: Backup your database:
pg_dump your_database_name > your_database_name_backup.sql
Step 3: Backup your GNU health HOME directory (as root):
su - tar -czf gnuhealth_your_version.tar.gz /home/gnuhealth exit
Step 4: Rename the current kernel directory, with gnuhealth user:
cd $HOME mv gnuhealth gnuhealth_your_current_version_number
Step 5: Download the new GNU Health version. The official GNU Health tar file contains all the modules.
Step 6: Extract the kernel and follow the instructions as in a new Installation.
Step 7: Update the Tryton configuration file trytond.conf to fit your needs. Make sure you have the right values for your installation. Compare the values with your current version, they should match. Some critical variables are:
The best way to edit the configuration file is to use the GNU Health user alias editconf:
Step 8: Upgrade the database:
cdexe ./trytond --all --database=your_database_name
Step 9: Start the Tryton server:
You should be now in your new GNU Health version!