1 --- etckeeper-1.18.8/etckeeper~ 2018-08-22 15:47:48.000000000 +0300
2 +++ etckeeper-1.18.8/etckeeper 2018-08-22 15:49:36.932110437 +0300
7 +if [ -z "$ETCKEEPER_LIB_DIR" ]; then
8 + ETCKEEPER_LIB_DIR=/lib/etckeeper
11 if [ -z "$ETCKEEPER_CONF_DIR" ]; then
12 ETCKEEPER_CONF_DIR=/etc/etckeeper
18 -if [ ! -d "$ETCKEEPER_CONF_DIR/$command.d" ]; then
19 - echo "etckeeper: $ETCKEEPER_CONF_DIR/$command.d does not exist" >&2
20 +if [ ! -d "$ETCKEEPER_LIB_DIR/$command.d" ] && [ ! -d "$ETCKEEPER_CONF_DIR/$command.d" ]; then
21 + echo "etckeeper: "$ETCKEEPER_LIB_DIR/$command.d" nor $ETCKEEPER_CONF_DIR/$command.d does not exist" >&2
26 if command -v perl >/dev/null; then
31 print join "\n", grep { ! -d $_ && -x $_ }
32 grep /^\Q$dir\/\E[-a-zA-Z0-9]+$/,
39 - for script in $(lsscripts "$ETCKEEPER_CONF_DIR/$command.d"); do
40 + for script in $(lsscripts "$ETCKEEPER_LIB_DIR/$command.d" "$ETCKEEPER_CONF_DIR/$command.d"); do
44 # fallback if perl isn't present
45 - for script in $ETCKEEPER_CONF_DIR/$command.d/*; do
46 + for script in "$ETCKEEPER_LIB_DIR/$command.d/"* "$ETCKEEPER_CONF_DIR/$command.d/"*; do
47 if [ ! -d "$script" -a -x "$script" ]; then
48 echo "$script" | grep -E -q "/[-a-zA-Z0-9]+$"
49 [ $? -eq 0 ] && "$script" "$@"
50 --- etckeeper-1.18.4/systemd/etckeeper.service~ 2016-06-20 08:06:01.000000000 +0300
51 +++ etckeeper-1.18.4/systemd/etckeeper.service 2016-06-29 23:42:00.804296507 +0300
56 -ExecStart=/etc/etckeeper/daily
57 +ExecStart=/lib/etckeeper/daily
58 IOSchedulingClass=idle
59 --- etckeeper-1.18.16/debian/cron.daily~ 2021-05-31 13:29:39.000000000 +0200
60 +++ etckeeper-1.18.16/debian/cron.daily 2021-05-31 13:31:15.151417059 +0200
64 -if [ -e /etc/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
65 +if [ -e /lib/etckeeper/daily ] && [ -e /etc/etckeeper/etckeeper.conf ]; then
66 . /etc/etckeeper/etckeeper.conf
67 if [ "$AVOID_DAILY_AUTOCOMMITS" != "1" ]; then
68 - /etc/etckeeper/daily
69 + /lib/etckeeper/daily