From 9e07af289e08c5c017b939fd023ab66729e011de Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 19 May 2021 06:35:18 +0200 Subject: [PATCH] bundles/scansnap: don't try to delete output directory --- bundles/scansnap/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/scansnap/metadata.py b/bundles/scansnap/metadata.py index 774fc34..bdbd71f 100644 --- a/bundles/scansnap/metadata.py +++ b/bundles/scansnap/metadata.py @@ -15,6 +15,6 @@ defaults = { }, 'cron': { # Automatically remove files which are older than 14 days - 'scansnap_cleanup': '00 00 * * * root /usr/bin/find /srv/scansnap/ -mtime +14 -delete', + 'scansnap_cleanup': '00 00 * * * root /usr/bin/find /srv/scansnap/ -mindepth 1 -mtime +14 -delete', }, }