From da99222587f8424778783f8ea415fc4eba48e8b2 Mon Sep 17 00:00:00 2001 From: olafbuitelaar Date: Thu, 22 Apr 2021 13:49:26 +0200 Subject: [PATCH] Update backup.sh i suppose this change should be reflected here as well; https://github.com/zammad/zammad/commit/3d86eb8543ea0056c18671f92b5ccec6de8d7170 --- containers/zammad-postgresql/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/zammad-postgresql/backup.sh b/containers/zammad-postgresql/backup.sh index 6774d76..6c570ee 100755 --- a/containers/zammad-postgresql/backup.sh +++ b/containers/zammad-postgresql/backup.sh @@ -24,7 +24,7 @@ function zammad_backup { # delete old backups if [ -d "${BACKUP_DIR}" ] && [ -n "$(ls "${BACKUP_DIR}")" ]; then - find "${BACKUP_DIR}"/*_zammad_*.gz -type f -mtime +"${HOLD_DAYS}" -exec rm {} \; + find "${BACKUP_DIR}"/*_zammad_*.gz -type f -mtime +"${HOLD_DAYS}" -delete fi if [ "${NO_FILE_BACKUP}" != "yes" ]; then