From a9b6c9a88b58092402ad511a6012e5ac5ff56d73 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 3 May 2020 06:42:12 -0500 Subject: [PATCH] Actually remove that last backup --- roles/gitea/templates/gitea.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/gitea/templates/gitea.sh b/roles/gitea/templates/gitea.sh index 79dea2d..e0c0a11 100644 --- a/roles/gitea/templates/gitea.sh +++ b/roles/gitea/templates/gitea.sh @@ -33,6 +33,7 @@ if (( currentbackupcount >= retention )); then lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)" if [ -f "$lastbackup" ]; then log "Removing old backup: $lastbackup" + rm "$lastbackup" fi fi # WE MAKE BACKUP NOW SERGEI