summaryrefslogtreecommitdiffstats
path: root/sample.install
blob: a05d28b40092b05e74c6335b503773f69e45632d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

case "$1" in
	pre_install)
	# add something which happends before install
	# $2 contains package version
	;;
	post_install)
	# add something which happends after install
	# $2 contains package version
	;;
	pre_upgrade)
	# add something which happends before update
	# $2 contains new package version
	# $3 contains old package version
	;;
	post_upgrade)
	# add something which happends after update
	# $2 contains new package version
	# $3 contains old package version
	;;
	pre_deinstall)
	# add something which happends before delete
	# $2 contains package version
	;;
	post_deinstall)
	# add something which happends after delete
	# $2 contains package version
	;;
esac