fix: cleanup after backup ends

This commit is contained in:
Silthus 2020-11-16 12:13:48 +01:00
parent 1248843e72
commit f8edb57a6d

View file

@ -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