Upgrade - Server on Linux with Sudoless Access
Overview
The vFunction Server keeps a backup of environmentally-specific files in $BASE_DIRECTORY/vfunction/etc/sysconfig/vfunction/installation/backup/. These backup files are then copied back into the default location during the upgrade process. Because this backup-and-copy process is in place, no manual steps are required to keep backups of files before the upgrade occurs.
Upgrade Steps
- Download the vFunction Server Sudoless Installation TGZ from the vFunction Portal
- SCP the Server TGZ package to the Server VM to the location where vFunction was previously installed, such as $BASE_DIRECTORY
- Change owernship of the Server TGZ package to match the user who performed the original installation
- Find-and-replace $INSTALLING_USER with the user who will perform the install
- Find-and-replace $INSTALLING_GROUP with the group to which the user is assigned
- Remove $PACKAGE_TYPE if the Server VM has Internet Access to Docker Hub to download the vFunction Server Container Images
- Find-and-replace $PACKAGE_TYPE with “offline” if the Server VM does not have access to Docker Hub
- Find-and-replace $VERSION with the release version, such as “3.6.1449”
chown $INSTALLING_USER:$INSTALLING_GROUP vfunction-server-$PACKAGE_TYPE-sudo-less-installation.v$VERSION.tgz
- Switch the user to the be logged in as the user who originally performed the installation
- Move to the location where vFunction was previously installed, such as $BASE_DIRECTORY
cd $BASE_DIRECTORY
- Unpack the Server TGZ package
- Remove $PACKAGE_TYPE if the Server VM has Internet Access to Docker Hub to download the vFunction Server Container Images
- Find-and-replace $PACKAGE_TYPE with “offline” if the Server VM does not have access to Docker Hub
- Find-and-replace $VERSION with the release version, such as “3.6.1449”
tar -xvzf vfunction-server-$PACKAGE_TYPE-sudo-less-installation.v$VERSION.tgz
- Run the Upgrade Script
bash vfunction/opt/vfunction/server-installation/upgrade.sh