From c3fa85aacb357cab0a29a1b68995801fc2670b82 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 6 May 2020 09:43:12 -0500 Subject: [PATCH] Fix looking for the wrong kinda backups in dokuwiki backup script --- roles/dokuwiki/templates/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dokuwiki/templates/backup.sh b/roles/dokuwiki/templates/backup.sh index e6a176a..3453bee 100644 --- a/roles/dokuwiki/templates/backup.sh +++ b/roles/dokuwiki/templates/backup.sh @@ -27,7 +27,7 @@ fi # Purge oldest backup if we need to currentbackupcount="$(ls -1 "$OUTDIR" | wc -l)" if (( currentbackupcount >= retention )); then - lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)" + lastbackup="$(find "$OUTDIR" -name \*.tar.gz 2>/dev/null | sort | head -n 1)" if [ -f "$lastbackup" ]; then log "Removing old backup: $lastbackup" rm "$lastbackup"