Passwork code update
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:
Adding a user to the docker group:
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 script to update Passwork:
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:
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:
Adding a user to the docker group:
Go to the customer portal and download the current version of Passwork:
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/PhRg0pe1sTgTGIpiZrSCC_cleanshot-2024-03-19-at-1352312x.png?format=webp)
Archive with Passwork downloaded from the customer portal to move to the server in the root directory of the installation and run the script to update:
The script searches for an archive or directory named — Passwork-*, if the name of the directory or archive is changed, the script will fail to update Passwork and an error will be displayed.
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: