From a77de6a442c2d3b009ca3baa066349dc22fbbbd1 Mon Sep 17 00:00:00 2001 From: olafbuitelaar Date: Sat, 24 Apr 2021 19:50:55 +0200 Subject: [PATCH] Update backup.sh (#204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit i suppose this change should be reflected here as well; https://github.com/zammad/zammad/commit/3d86eb8543ea0056c18671f92b5ccec6de8d7170 Co-authored-by: André Bauer --- 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