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 78e66e4..e83b570 100644
--- a/debian/cron.daily
+++ b/debian/cron.daily
@@ -3,8 +3,11 @@ set -e
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" >/dev/null
+ # avoid autocommit if an install run is in progress
+ if [ ! -e /var/cache/etckeeper/packagelist.pre-install ]; then
+ if etckeeper unclean; then
+ etckeeper commit "daily autocommit" >/dev/null
+ fi
fi
fi
fi