summaryrefslogtreecommitdiff
path: root/debian/preinst
blob: 1e6e21fe87256aa1bf78d99b61118b84d9850b31 (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
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

set -e

case "${1}" in
	install|upgrade)
		if [ -h /usr/share/live-helper/data/debian-cd/lenny ]
		then
			rm -f /usr/share/live-helper/data/debian-cd/lenny
		fi

		if [ -h /usr/share/live-helper/data/debian-cd/sid ]
		then
			rm -f /usr/share/live-helper/data/debian-cd/sid
		fi

		if [ -d /usr/share/live-helper/includes ]
		then
			rm -rf /usr/share/live-helper/includes
		fi

		if [ -d /usr/share/live-helper/templates ]
		then
			rm -rf /usr/share/live-helper/templates
		fi
		;;

	abort-upgrade)

		;;

	*)
		echo "preinst called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac

#DEBHELPER#

exit 0