summaryrefslogtreecommitdiff
path: root/debian/cron.daily
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cron.daily')
-rw-r--r--debian/cron.daily7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/cron.daily b/debian/cron.daily
index e00e570..eb74401 100644
--- a/debian/cron.daily
+++ b/debian/cron.daily
@@ -1,5 +1,8 @@
#!/bin/sh
set -e
-if [ -e /etc/etckeeper/daily ]; then
- /etc/etckeeper/daily
+if [ -e /etc/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
+ . /etc/etckeeper/etckeeper.conf
+ if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
+ /etc/etckeeper/daily
+ fi
fi