Updates
Self-Hosted
We recommend to create a backup of your installation before updating.
We deliver the shell script update.sh
in the sysreptor
directory.
If updates are available, the script downloads the release from GitHub. It rebuilds your Docker images and restarts all containers.
If no updates are available, the script checks when the Docker images were last built. If the last build date was more then seven days ago, the Docker images are rebuilt to ensure that all base images and dependencies are up to date.
Use the --force
option to force rebuilding the Docker images.
Your current SysReptor directory will be renamed for backup purposes. The script will download the newer version and place it into the directory where the old version was.
It will then copy your app.env
to the right location of your newer version. The new docker images are build and launched.
Run update script: | |
---|---|
1 |
|
Download and extract the latest SysReptor release:
1 2 |
|
Copy deploy/app.env
from your old installation to the new installation.
cd
to sysreptor/deploy
. Then, build Docker images and launch containers:
Community: | |
---|---|
1 |
|
Professional: | |
---|---|
1 |
|
Recommended: Automatic updates
We recommend to deploy automatic updates and run the script once per day. This ensures you receive updates early and you regularly update all dependencies and base images.
If cron
is not installed, install and start:
1 2 3 4 |
|
Open crontab
:
1 |
|
Schedule your update, e.g. every day at midnight:
1 |
|
Make sure your user has write permissions to the parent directory of your SysReptor directory. In this example, you need write permissions to /home/yourpath/
.