diff options
author | Dan Fandrich <danf@mageia.org> | 2024-01-23 14:05:00 -0800 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-01-23 14:05:00 -0800 |
commit | 593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898 (patch) | |
tree | c54884364144daacee148e7285f2ac3a0d2c7c0c | |
parent | f7e017e88ba8be60385f289f3aa73fda26650f27 (diff) | |
download | puppet-593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898.tar puppet-593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898.tar.gz puppet-593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898.tar.bz2 puppet-593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898.tar.xz puppet-593ace1786a4e24f1a8130c8d0d8a4bf5bd3e898.zip |
Don't delete empty placeholder directories
Even if 9/nonfree/backports_testing/ hasn't had any builds recently, it
shouldn't be deleted. Only delete directories deeper in the hierarchy.
Follow-up to f7e017e8
-rw-r--r-- | modules/buildsystem/manifests/scheduler.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/scheduler.pp b/modules/buildsystem/manifests/scheduler.pp index cacae1e7..11780312 100644 --- a/modules/buildsystem/manifests/scheduler.pp +++ b/modules/buildsystem/manifests/scheduler.pp @@ -47,7 +47,7 @@ class buildsystem::scheduler { # at ctime instead of mtime, which resets every time a file/directory # underneath it is deleted. Directories don't take much space, so this # shouldn't be a real issue. - command => sprintf("/usr/bin/find %s/uploads -ignore_readdir_race -xdev -depth -type d -ctime +14 -empty >/var/lib/schedbot/clean-uploads-dirs-test.log 2>&1", shellquote($homedir)), + command => sprintf("/usr/bin/find %s/uploads -ignore_readdir_race -mindepth 5 -xdev -depth -type d -ctime +14 -empty >/var/lib/schedbot/clean-uploads-dirs-test.log 2>&1", shellquote($homedir)), hour => '*/1', minute => '53', } |