summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-05-17 10:34:27 -0400
committerJoey Hess <joeyh@joeyh.name>2016-05-17 10:34:27 -0400
commit7c734b05adf5a98be134008dfd7b5cc2c2b5a81d (patch)
treeac1b6c5ba7c899e587eb664f6c89a5e0a459f0f5 /systemd
parent43e5d4b50766d4b9bc4317f1fef69cb2ed48fecf (diff)
refactor daily script
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/etckeeper19
1 files changed, 0 insertions, 19 deletions
diff --git a/systemd/etckeeper b/systemd/etckeeper
deleted file mode 100755
index 5255691..0000000
--- a/systemd/etckeeper
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-set -e
-if [ -x /usr/bin/etckeeper ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
- . /etc/etckeeper/etckeeper.conf
- if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
- # avoid autocommit if an install run is in progress
- lockfile=/var/cache/etckeeper/packagelist.pre-install
- if [ -e "$lockfile" ] && [ -n "$(find "$lockfile" -mtime +1)" ]; then
- rm -f "$lockfile" # stale
- fi
- if [ ! -e "$lockfile" ]; then
- AVOID_SPECIAL_FILE_WARNING=1
- export AVOID_SPECIAL_FILE_WARNING
- if etckeeper unclean; then
- etckeeper commit "daily autocommit" >/dev/null
- fi
- fi
- fi
-fi