Passwork Update

Docker

10min

Passwork 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:

Shell


Add 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 Passwork update script:

Shell

  • 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 and 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-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


Add a user to the docker group:

Shell


Downloading the latest Passwork version and running the script

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

Document image


Move the downloaded archive to the server in the root directory of the installation and run the update script:

Shell


The script searches for an archive or directory named — Passwork-*, if the name of the directory or archive is different, the update will fail with an error

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