File: postrm

package info (click to toggle)
exim 2.05-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,520 kB
  • ctags: 2,992
  • sloc: ansic: 42,424; perl: 1,349; sh: 843; makefile: 321
file content (25 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (3)
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
#!/bin/sh -e

case "$1" in
	remove)
		# Unregister suid
		if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
        		suidunregister -s exim /usr/sbin/exim
		fi
		;;

	purge)
		# On a purge we also...
		# Remove spool and config file
		rm -rf /var/log/exim /var/run/exim /var/spool/exim /etc/exim.conf

		# Remove links from rc?.d.
		update-rc.d -f exim remove >/dev/null

		# Remove from inetd.conf
		update-inetd --remove exim
		;;

	upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		;;
esac