1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/community/etckeeper/apk-commit_hook
2017-12-27 14:42:12 +01:00

22 lines
317 B
Bash

#!/bin/sh
[ -x /usr/bin/etckeeper ] || exit
[ -x /usr/bin/git ] || exit
[ -x /usr/bin/find ] || exit
AVOID_SPECIAL_FILE_WARNING=1
export AVOID_SPECIAL_FILE_WARNING
case "$1" in
pre-commit)
etckeeper pre-install
;;
post-commit)
etckeeper post-install
;;
*)
echo "$0: Un-handled action: $1"
;;
esac