From 5d7cd7702d8bbc9e3fafd7f4d6e170941c189e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 13 Mar 2017 08:49:57 +0100 Subject: [PATCH] removed -r parameter from rm command --- contrib/backup/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backup/functions b/contrib/backup/functions index 73e8a1510..61a6f6c52 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -12,7 +12,7 @@ function get_backup_date () { } function delete_old_backups () { - test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm -r {} \; + test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm {} \; } function get_db_credentials () {