Automatic Updates
Configuring Automatic Updates with Cron
To be able to use automatic Updates with this Server the following environment variables have to be set to true
:
RCON_ENABLED
UPDATE_ON_BOOT
注意
If docker restart is not set to policy always
or unless-stopped
then the server will shutdown and will need to be manually restarted.
The example docker run command and docker compose file in the Quicksetup already use the needed policy
Variable | Info | Default Values | Allowed Values |
---|---|---|---|
AUTO_UPDATE_CRON_EXPRESSION | Setting affects frequency of automatic updates. | 0 * * * * | Needs a Cron-Expression - See Configuring Automatic Backups with Cron |
AUTO_UPDATE_ENABLED | Enables automatic updates | false | true/false |
AUTO_UPDATE_WARN_MINUTES | How long to wait to update the server, after the player were informed. (This will be ignored, if no Players are connected) | 30 | !0 |
提示
This image uses Supercronic for crons see supercronic or Crontab Generator.
Set AUTO_UPDATE_CRON_EXPRESSION
to change the default schedule.