Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / local / etckeeper-configure
diff --git a/local/etckeeper-configure b/local/etckeeper-configure
new file mode 100755 (executable)
index 0000000..ae5bdb5
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/local/lib.sh
+
+sudo install -m 644 -o root -g root /dev/stdin \
+ /etc/etckeeper/etckeeper.conf <<-EOF
+       VCS=git
+       GIT_COMMIT_OPTIONS=""
+       AVOID_DAILY_AUTOCOMMITS=1
+       #AVOID_SPECIAL_FILE_WARNING=1
+       AVOID_COMMIT_BEFORE_INSTALL=1
+       HIGHLEVEL_PACKAGE_MANAGER=apt
+       LOWLEVEL_PACKAGE_MANAGER=dpkg
+       EOF
+sudo install -m 644 -o root -g root \
+ "$tool"/etc/etckeeper/prompt.sh \
+        /etc/etckeeper/prompt.sh
+"$tool"/local/apt-get-install etckeeper