Passwork Update

Docker

10min

Passwork Online Update

Checking user rights and running the script

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:

Shell


Adding a user to the docker group:

Shell


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:

Shell


Actions performed by the script

  • Check for unzip, curl, and jq utilities
  • Import 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 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:

Shell


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:

Shell


Adding a user to the docker group:

Shell


Downloading the Passwork version and running the script

Go to the customer portal and download the current version of Passwork:

Document image


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:

Shell


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.

Actions performed by the script

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:

Shell