fix: cleanup after backup ends
This commit is contained in:
parent
1248843e72
commit
f8edb57a6d
1 changed files with 14 additions and 16 deletions
|
@ -152,11 +152,9 @@ if retry 5 10s rcon-cli save-off; then
|
|||
retry 20 10s rcon-cli save-on
|
||||
# Remove our exit trap now
|
||||
trap EXIT
|
||||
else
|
||||
else
|
||||
log ERROR "Unable to turn saving off. Is the server running?"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if (( PRUNE_BACKUPS_DAYS > 0 )); then
|
||||
rcb cleanup
|
||||
fi
|
||||
rcb cleanup
|
Loading…
Add table
Reference in a new issue