Migration to Passwork 7
Passwork update to version 7

Linux

12min
this instruction assumes the following passwork location — /var/www/ preparation before upgrading, if passwork is installed in a cloud/virtual environment, create a snapshot of the virtual state of the os to restore functionality in case of an incorrect upgrade; obtain root permissions and update the local package database shell sudo i apt get update obtaining the latest version of the passwork create a temporary directory to receive the passwork shell mkdir /tmp/update passwork if the server with passwork is located in a closed loop, you need to go to passwork customer portal https //portal passwork pro and manually get version 7 and move it to the server in a directory named — /tmp/update passwork/passwork zip go to the passwork customer portal https //portal passwork pro and copy the api key to get the current version create an api key variable shell api key=your api key check the available version of passwork from the customer portal using the copied api key with a request shell curl x get "https //portal passwork pro/api/version?apikey=$api key" w "\n" correct output shell {"response" {"last available version" "07xxxx"}} you need to make sure that version 7 of passwork is available for download — 07xxxx get version 7 of passwork using the prompt shell curl o "/tmp/update passwork/passwork zip" "https //portal passwork pro/api/download?apikey=$api key" clear the api key variable shell unset api key update to the latest version get the current version of passwork into a variable shell # get passwork version from the version file version=$(cat /var/www/version) copy the passwork configuration file to a separate directory shell cp /var/www/app/config/config ini /var/ create an archive of the current version of passwork to be able to roll back to a previous version shell # install zip if an error occurs during execution apt install zip y yum install zip y zip r /var/passwork $version zip /var/www/ delete all contents from the passwork directory shell rm rf /var/www/ && rm rf /var/www/ unzip passwork version 7 to a physical location shell unzip /tmp/update passwork/passwork zip d /var/www/ delete the update passwork temporary directory shell rm rf /tmp/update passwork set permissions for the physical location of the passwork deb find /var/www/ type d exec chmod 755 {} \\; find /var/www/ type f exec chmod 644 {} \\; find /var/www/init type f exec chmod 600 {} \\; chown r www data\ www data /var/www/ rpm find /var/www/ type d exec chmod 755 {} \\; find /var/www/ type f exec chmod 644 {} \\; find /var/www/init type f exec chmod 600 {} \\; chown r apache\ apache /var/www/ passwork update to version 7 docid\ mirirltabi9ksiabc5ih1 migration of passwork database objects docid\ us6r fvttqytaxn hn3df