Rollback Passwork 6→5 on Linux
Preparing for the Update
Make a copy of the Passwork files folder. In case of any problems, you can roll back to your version. The files are located in the directory:
- old Docker build —
/server/sites/prod - manual installation —
/var/www
- Old Docker build
- Manual installation
cd /server/sites/prod
git fetch
git checkout v5
git reset --hard origin/v5
git pull
cd /var/www
git fetch
git checkout v5
git reset --hard origin/v5
git pull
If you see an error after executing git pull
git pull
fatal: unsafe repository ('/server/sites/prod' is owned by someone else)
To add an exception for this directory, call:
Execute the following command:
- Old Docker build
- Manual installation
git config --global --add safe.directory /server/sites/prod
git config --global --add safe.directory /var/www
And repeat git pull
The system will automatically download the updates.
Please note that the instructions provided are for informational purposes only and it is recommended to have a backup of all important files before making any updates.