From d8ca0922a6ac019d56e69d82f1c2fa0a460d317d Mon Sep 17 00:00:00 2001 From: Kristijan Mitrovic Date: Fri, 25 Sep 2020 09:33:59 +0200 Subject: [PATCH] Avoid deleting root tmp folders in cleaner command --- .../src/main/resources/packer/roles/bubble/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml b/bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml index 479e0609..2ebcaa97 100644 --- a/bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml +++ b/bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml @@ -131,7 +131,7 @@ name: "Cleaning tmp folders" special_time: "hourly" user: "root" - job: "find /tmp ~bubble/tmp /var/lib/postgresql/tmp -mtime +1 -type f -delete && find /tmp ~bubble/tmp /var/lib/postgresql/tmp -mtime +1 -type d -empty -delete" + job: "find /tmp ~bubble/tmp /var/lib/postgresql/tmp -mtime +1 -type f -delete && find /tmp ~bubble/tmp /var/lib/postgresql/tmp -mindepth 1 -mtime +1 -type d -empty -delete" - name: Record software versions template: