Passwork update

Docker

12min
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 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 archive verification with digital signature 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 xxxxxxxx xxxxxxxx tar gz offline 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 and running the script go to the customer portal and get the latest version of passwork and its digitally signed archive you need public key to verify the digital signature, spobods to get it manual open the url ; copy the entire contents; paste into a file and save with the name — public key automatic (curl or wget) curl curl o public key https //passwork pro/public key wget wget o public key https //passwork pro/public key move the resulting files to the passwork server to the root location of the docker build shell /\<passwork>/passwork xxxxxx zip /\<passwork>/xxxxxx sig /\<passwork>/public key run the update script shell cd /\<passwork>/ /offline update sh skip by default, the script will verify the digital signature using the public key if the signature is invalid or missing, the update will be aborted if you trust the source of the archive, you can bypass signature verification shell /offline update sh skip 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 archive verification with digital signature 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 xxxxxxxx xxxxxxxx tar gz