From e8545cd4e7a257b325ccb3ca9c374c5b9c83ae9c Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer Date: Thu, 10 Aug 2023 09:25:09 +0200 Subject: [PATCH] Keine Wildcard in find's Startpunkt --- tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index 1ab3b1a..adc1c7c 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -45,7 +45,7 @@ minute: "0" hour: "8" user: root - job: "find /var/backups/gitea-* -mtime +7 -type f -exec rm {} +" + job: find /var/backups -path /var/backups/gitea-* -mtime +7 -type f -exec rm {} + cron_file: gitea-backup-cleanup - name: Check if environment.env will get changed