summaryrefslogtreecommitdiff
path: root/init.d/20restore-etckeeper
diff options
context:
space:
mode:
authorScott Bronson <b.git@u32.net>2008-03-20 03:06:05 -0700
committerScott Bronson <b.git@u32.net>2008-03-20 03:06:05 -0700
commitb8e9ed27c42a49bf2d524ae7dce1e03a206156dc (patch)
tree56d25a36727697d8c0dd822f00e22be86511c275 /init.d/20restore-etckeeper
parent240824da7e94af3406eead74a89b1b3af2b34870 (diff)
restore-etckeeper should run after restore-metadata so its settings will take priority.
Diffstat (limited to 'init.d/20restore-etckeeper')
-rwxr-xr-xinit.d/20restore-etckeeper11
1 files changed, 11 insertions, 0 deletions
diff --git a/init.d/20restore-etckeeper b/init.d/20restore-etckeeper
new file mode 100755
index 0000000..984d521
--- /dev/null
+++ b/init.d/20restore-etckeeper
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+# Yes, this runs code from the repository. As documented, etckeeper-init
+# should only be run on repositories you trust.
+if [ -e .etckeeper ]; then
+ . ./.etckeeper
+else
+ touch .etckeeper
+ chmod 600 .etckeeper
+fi