Change text of automatic updates

This commit is contained in:
Akumatic 2025-04-10 22:22:28 +00:00
parent 79057e8450
commit 24553291ef

View File

@ -22,14 +22,12 @@ The necessary steps are:
This repository contains an [update script](update.sh) for use with cron. It checks whether the remote had new commits that are not present locally. If this is the case, it pulls from remote and redeploys the stack. This repository contains an [update script](update.sh) for use with cron. It checks whether the remote had new commits that are not present locally. If this is the case, it pulls from remote and redeploys the stack.
For example, the following entry can be useed to set up a user cron job with `crontab -e` For example, the following entry can be used to set up a user cron job with `crontab -e`, assuming that the repository is stored in `/srv/portainer`.
``` ```
15,45 * * * * /srv/portainer/update.sh 2>&1 | logger -t portainerupdate 15,45 * * * * /srv/portainer/update.sh 2>&1 | logger -t portainerupdate
``` ```
- The repository is stored in `/srv/portainer`
- The path of the update script is `/srv/portainer/update.sh`
- The script runs every 30 minutes at minute 15 and 45 - The script runs every 30 minutes at minute 15 and 45
- Messages from `stderr` are redirected to `stdout` - Messages from `stderr` are redirected to `stdout`
- Output is piped to logger, tagged as `portainerupdate` - Output is piped to logger, tagged as `portainerupdate`