We have changed the way PostgreSQL is installed, this change will make it so that PostgreSQL can be installed using RedHat repositories instead of relying on external sources. This change makes the server more secure as you can use your internal RedHat repositories to install PostgreSQL. However, to apply this upgrade and all future upgrades you will need to follow the steps below.
Firstly Backup your data, to do this you can use the backup script provided on the VT Docs server. It's located in /home/visiblethread/VisibleThreadTools/ directory. Once in the 'VisibleThreadTools' directory run the following command.
Once the backup is finished it will be placed in the 'vtbackups' directory. the full file path is /home/visiblethread/VisibleThreadTools/vtbackups.
Next, you need to remove the old visiblethread packages because the current PostgreSQL version depends on them and you won't be able to remove them unless you remove the visiblethread packages first. You also need to copy your license file, So to remove the visiblethread and PostgreSQL packages run the following commands.
cp /home/visiblethread/documents/license/<yourlicense.file> /tmp/
# We need to copy the move the backup file because it will be removed after removing the old packages.
mv /home/visiblethread/VisibleThreadTools/vtbackups/<upbackupfile> /tmp/
# To find the currently installed visiblethread package to remove run the following
rpm -qa | grep visiblethread
# The above command will list the visiblethread package to remove in the command below
yum remove visiblethread-docs-3.0.8-1.x86_64
yum remove -y postgresql10
Once the packages are removed you can now upgrade to the latest version of VisibleThread Docs. To do this run the following commands.
subscription-manager repos --enable rhel-server-rhscl-7-rpms
yum install -y visiblethread-docs-3.2.2-1.x86_64
After the upgrade is applied you now need to move the license to a new location, run the following command:
mv /tmp/<yourlicense.file> /opt/visiblethread/documents/license/
Lastly, restore your data then login and check everything is working as normal. To restore your data please use the restore script provided on the VT Docs Server. Run the following command to do so, note that <Backupfile> is the name of your latest backup in the 'vtbackups' directory.
# Move the backup to the following location
mv /tmp/<yourbackup> /opt/visiblethread/VisibleThreadTools/vtbackup/
# too restore the backup run the below command
sudo /opt/visiblethread/VisibleThreadTools/vt-restore.sh /opt/visiblethread/VisibleThreadTools/vtbackup/<Backupfile>
You should now be running the latest version of VisibleThread Docs. The version number 3.2 should be displayed on the login screen.