Passwork update
Manual updates

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 shell sudo i obtaining the latest version of the passwork create a temporary directory to receive the passwork shell mkdir /tmp/update passwork if the passwork server is located in a closed loop you need to go to the passwork customer portal , copy the certificate number and get passwork version 7 through the address bar of your browser — https //portal passwork pro/api/download?apikey=api key go to the passwork customer portal and copy the api key to get the current version create an api key variable shell api key=your api key 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 files to a temporary directory shell cp /var/www/init/config env /tmp/update passwork/ cp /var/www/init/encryption key /tmp/update passwork/ 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/ move the copied passwork configuration files to the new version shell mv /tmp/update passwork/config env /var/www/init/ mv /tmp/update passwork/encryption key /var/www/init/ 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/ restart the web server and php deb systemctl restart php8 3 fpm service apache2 service rpm systemctl restart php fpm service httpd service clear passwork temporary cache deb sudo u www data bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ clear' rpm sudo u apache bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ clear' perform a cache warmup deb sudo u www data bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ warmup' rpm sudo u apache bash c 'cd /var/www && php d memory limit= 1 /bin/console cache\ warmup' go to the passwork root location and update the passwork version in the database deb sudo u www data bash c 'cd /var/www && php d memory limit= 1 /bin/console app\ update' rpm sudo u apache bash c 'cd /var/www && php d memory limit= 1 /bin/console app\ update'