aboutsummaryrefslogtreecommitdiffstats
path: root/testing/etckeeper/etckeeper.post-install
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-01-24 19:19:52 +0100
committerTimo Teräs <timo.teras@iki.fi>2017-02-28 16:18:04 +0200
commit188d8ba1fe16000e59eacbb4e86f6bc92e0a61e0 (patch)
treed9ed8072f0078dc3b46a742a7ab49fc22959af39 /testing/etckeeper/etckeeper.post-install
parentf965a9b1661f09c3ba69d55cc124c129f372f798 (diff)
downloadaports-188d8ba1fe16000e59eacbb4e86f6bc92e0a61e0.tar.bz2
aports-188d8ba1fe16000e59eacbb4e86f6bc92e0a61e0.tar.xz
testing/etckeeper: new aport
Note: uses a apk commit_hooks.d script, so it requires a new apk version.
Diffstat (limited to 'testing/etckeeper/etckeeper.post-install')
-rw-r--r--testing/etckeeper/etckeeper.post-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/etckeeper/etckeeper.post-install b/testing/etckeeper/etckeeper.post-install
new file mode 100644
index 0000000000..5bb094cb22
--- /dev/null
+++ b/testing/etckeeper/etckeeper.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ -e /etc/.git ] && exit 0
+
+if etckeeper init; then
+ etckeeper commit "initial commit"
+ # we are in trigger context so the apk database
+ # contains info before the change takes effect
+ /etc/etckeeper/pre-install.d/10packagelist
+fi