diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2017-01-24 19:19:52 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-28 16:18:04 +0200 |
commit | 188d8ba1fe16000e59eacbb4e86f6bc92e0a61e0 (patch) | |
tree | d9ed8072f0078dc3b46a742a7ab49fc22959af39 /testing/etckeeper/apk-commit_hook | |
parent | f965a9b1661f09c3ba69d55cc124c129f372f798 (diff) | |
download | aports-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/apk-commit_hook')
-rw-r--r-- | testing/etckeeper/apk-commit_hook | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/etckeeper/apk-commit_hook b/testing/etckeeper/apk-commit_hook new file mode 100644 index 0000000000..6f0a4c043c --- /dev/null +++ b/testing/etckeeper/apk-commit_hook @@ -0,0 +1,17 @@ +#!/bin/sh + + +[ -x /usr/bin/etckeeper ] || exit + +case "$1" in + pre-commit) + etckeeper pre-install + ;; + post-commit) + etckeeper post-install + ;; + + *) + echo "$0: Un-handled action: $1" + ;; +esac |