aboutsummaryrefslogtreecommitdiffstats
path: root/main/etckeeper/apk-commit_hook
blob: a662c81a817a4720ed61f4f8a700f0e867f85d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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