summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-01-29 10:50:22 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-01-29 10:50:36 -0500
commit0339812ec46eea37a860c2cd06a057f897088ed4 (patch)
tree1d11b41cfb39f040c457c6ce485ac7c615522364
parent743792efe39e8e6ef54151675fe2da5de11127b6 (diff)
mgmt-etckeeper: trigger the post-install hook for holo-only changes too
-rw-r--r--config-mgmt-etckeeper.PKGBUILD17
1 files changed, 16 insertions, 1 deletions
diff --git a/config-mgmt-etckeeper.PKGBUILD b/config-mgmt-etckeeper.PKGBUILD
index e20767b..5a8e8b0 100644
--- a/config-mgmt-etckeeper.PKGBUILD
+++ b/config-mgmt-etckeeper.PKGBUILD
@@ -1,5 +1,5 @@
. ${BUILDFILE%/*}/common.sh
-pkgver=20180126
+pkgver=20180129
pkgrel=2
package() {
@@ -38,6 +38,21 @@ EOF
add-unit etc/systemd/system/etckeeper.service.wants/etckeeper-init.service
add-unit etc/systemd/system/multi-user.target.wants/etckeeper-init.service
+add-file usr/share/libalpm/hooks/zz-etckeeper-post-install-holo.hook <<'EOF'
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = File
+Target = usr/share/holo/*
+
+[Action]
+Description = etckeeper: post-transaction commit (holo trigger)
+When = PostTransaction
+Exec = /usr/bin/etckeeper post-install
+Depends = etckeeper holo
+EOF
+
# Of course, if root will be making git commits, root's git
# credentials need configured.
install -d -m0750 root