summarylogtreecommitdiffstats
path: root/shadow-tech.install
blob: 180055564bb1d1bc9efadb1376c404a5324c5090 (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
post_install() {
	ln -sf '/opt/Shadow/shadow' '/usr/bin/shadow'
}

post_remove() {
	# Remove configuration
	for user in `ls /home`
	do
		if [ -d /home/$user/.config/Shadow ]; then
			rm -R /home/$user/.config/Shadow
		fi
	done
}

pre_upgrade(){
	# Delete the old version of Shadow
	if [ -d "/opt/Shadow" ]; then
	    rm -r "/opt/Shadow"
	fi
}

post_upgrade(){
	post_install
}