]> git.netwichtig.de Git - user/henk/code/snooze.git/blobdiff - sv/snooze-monthly/run
sv: only invoke run-parts if the directory exists
[user/henk/code/snooze.git] / sv / snooze-monthly / run
index f506a799729b381f523c23ec57363f3bb1ceb5f3..b83c5001073392ff0899a53450edd6665d89e59a 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
 exec snooze -d 1 -s 28d -t /var/cache/snooze/monthly -- sh -c \
-       "run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly"
+       "test -d /etc/cron.monthly && run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly"