Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish release 2024-02-19 #211

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

[Back to main](README.md#changelog)

## 2024-02-19

* Added 15 seconds delay after save before backup (#209)
* Changed standard RESTART_CRON_EXPRESSION to only once a day at 6pm
* Cause less illnesses on Pals that way

## 2024-02-13

* Added the option to enable webhook curl debugging for weird error edge-cases
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
BACKUP_RETENTION_AMOUNT_TO_KEEP=72 \
# Restart-settings
RESTART_ENABLED=false \
RESTART_CRON_EXPRESSION="0 3,15 * * *" \
RESTART_CRON_EXPRESSION="0 18 * * *" \
# Webhook-settings
WEBHOOK_ENABLED=false \
WEBHOOK_DEBUG_ENABLED=false \
Expand Down
2 changes: 1 addition & 1 deletion default.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BACKUP_RETENTION_POLICY=true
BACKUP_RETENTION_AMOUNT_TO_KEEP=72
# Restart-settings
RESTART_ENABLED=false
RESTART_CRON_EXPRESSION="0 3,15 * * *"
RESTART_CRON_EXPRESSION="0 18 * * *"
# Webhook-settings
WEBHOOK_ENABLED=false
WEBHOOK_DEBUG_ENABLED=false
Expand Down
1 change: 1 addition & 0 deletions scripts/backupmanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ function create_backup() {
rconcli 'broadcast Saving-world...'
rconcli 'save'
rconcli 'broadcast Saving-done'
sleep 15
rconcli 'broadcast Creating-backup'

if ! tar cfz "${LOCAL_BACKUP_PATH}/${backup_file_name}" -C "${LOCAL_GAME_PATH}/" "Saved" ; then
Expand Down
1 change: 1 addition & 0 deletions scripts/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function schedule_restart() {
rconcli 'broadcast Saving-world-before-restart...'
rconcli 'save'
rconcli 'broadcast Saving-done'
sleep 15
rcon "Shutdown 10"
if [[ -n $WEBHOOK_ENABLED ]] && [[ $WEBHOOK_ENABLED == "true" ]]; then
send_stop_notification
Expand Down