diff options
author | Scott Bronson <b.git@u32.net> | 2008-03-20 03:06:05 -0700 |
---|---|---|
committer | Scott Bronson <b.git@u32.net> | 2008-03-20 03:06:05 -0700 |
commit | b8e9ed27c42a49bf2d524ae7dce1e03a206156dc (patch) | |
tree | 56d25a36727697d8c0dd822f00e22be86511c275 /init.d/20restore-etckeeper | |
parent | 240824da7e94af3406eead74a89b1b3af2b34870 (diff) |
restore-etckeeper should run after restore-metadata so its settings will take priority.
Diffstat (limited to 'init.d/20restore-etckeeper')
-rwxr-xr-x | init.d/20restore-etckeeper | 11 |
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 |