Migration to Passwork 7
Passwork update to version 6.5
Docker
11min
please note if the docker build does not have the scripts ( update sh and offline update sh ) to update passwork, then an old docker build is used, you need to old docker migration to new docid 8ucmw uxksus1zjk9yjzk one with updated environment and basic passwork components passwork online update checking user rights and running the script if the update is not performed as root , then you need to make sure that the user is a member of the docker group verify the user in the docker group id $user | grep docker add a user to the docker group sudo usermod a g docker $user the script uses curl if your network uses a proxy server, you need to add environment variables export http proxy=http //proxy example com 8080 export https proxy=http //proxy example com 8080 run the passwork update script /update sh actions performed by the script checking for unzip , curl , and jq utilities importing variables from env file checking $cert variable getting the latest available version of passwork backing up the database and configuration files downloading and upgrading error handling after the script finishes before updating passwork, the script will create a backup of the database in the /backup/mongo xxxxxx xxxx xxxx xx xx xx\ xx\ xx dump directory and a copy of the configuration files in the root directory /conf 20240201 xxxxxxxx tar gz after running the script, the passwork nginx and passwork php containers must be restarted docker restart passwork nginx passwork php offline passwork update checking user rights if the upgrade is not performed as root — you need to make sure that the user is a member of the docker group verify the user in the docker group id $user | grep docker add a user to the docker group sudo usermod a g docker $user downloading the latest passwork version and running the script go to the customer portal and download the latest version of passwork move the downloaded archive to the server in the root directory of the installation and run the update script /offline update sh the script searches for an archive or directory named — passwork , if the name of the directory or archive is different, the update will fail with an error actions performed by the script importing variables from an env file defining the update mode if the archive with the version is found, the mode is set to "zip" if the directory with the version is found, the mode "directory" is set if an archive (zip) is found, the unzip utility is checked to see if it is available functions for updating extracts the contents of the archive and copies it to the "www" directory copies the contents of the directory to the "www" directory selection of the update method and execution creating a backup of the database and configuration files error handling after the script finishes executing before updating passwork, the script will create a backup of the database in the /backup/mongo xxxxxx xxxx xxxx xx xx xx\ xx\ xx dump directory and a copy of the configuration files in the root directory /conf 20240201 xxxxxxxx tar gz after running the script, the passwork nginx and passwork php containers must be restarted docker restart passwork nginx passwork php passwork update to version 6 5 docid\ jtxqa8355ecj3msn0qrew initial data migration docid\ f0t8dwhkgabf6yezhwrah