diff options
-rw-r--r-- | debian/cron.daily | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/cron.daily b/debian/cron.daily index ce6cb31..6b7ccf7 100644 --- a/debian/cron.daily +++ b/debian/cron.daily @@ -1,8 +1,10 @@ #!/bin/sh set -e -. /etc/etckeeper/etckeeper.conf -if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then - if /usr/sbin/etckeeper unclean; then - /usr/sbin/etckeeper commit "Daily autocommit" +if [ -x /usr/sbin/etckeeper ] && [ -e /etc/etckeeper/etckeeper.conf ]; then + . /etc/etckeeper/etckeeper.conf + if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then + if etckeeper unclean; then + etckeeper commit "daily autocommit" + fi fi fi |