Prerequisites: The person following these steps should have good knowledge of Linux shell scripting and must log in with SUDO privileges.
Recommended: The update process automatically creates a backup, but we strongly recommend creating a manual backup of eRS database, before proceeding.
1. Move to the eRS installation directory
cd /opt
2. Remove the old symlink
Remove the existing symlink
sudo rm ers
sudo mv ers-self-hosted-3.1.0/ ers/
3. Add the required extension
Add the "btree_gist" extension and install the XML utility
sudo -u postgres psql -d ers -c 'CREATE EXTENSION IF NOT EXISTS btree_gist'
Check if `xmllint` is already installed
xmllint --version
If the above command says 'xmllint not found', install using the default package manager (apt or yum)
sudo apt install libxml2-utils
4. Change user context to "eRS"
sudo -su ers
cd /opt/ers
5. Download and execute the update-script
wget -q https://storage.googleapis.com/app-file-store/self-hosted/files/update/update.sh -O ./update.sh
chmod u+x ./update.sh
./update.sh
To ensure that you have updated to the latest version, re-run the update script.
./update.sh
6. Finally, restart the service
Exit to the sudo user context and restart ers service
exit
sudo systemctl restart ers