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