Fixes #3516 - Use -delete instead of -exec
This commit is contained in:
parent
3baec9c606
commit
3d86eb8543
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,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 {} \;
|
||||
test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -delete
|
||||
}
|
||||
|
||||
function get_db_credentials () {
|
||||
|
|
Loading…
Reference in a new issue