File: prerm

package info (click to toggle)
exim 3.36-18.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,684 kB
  • ctags: 3,574
  • sloc: ansic: 52,492; sh: 1,172; perl: 577; makefile: 343
file content (28 lines) | stat: -rw-r--r-- 550 bytes parent folder | download
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
#!/bin/sh -e

case "$1" in
	remove|upgrade|remove-in-favour|deconfigure-in-favour)

		# Stop running exim
		if which invoke-rc.d >/dev/null 2>&1; then
			invoke-rc.d exim stop
		else
			if [ -x /etc/init.d/exim ]; then
			    /etc/init.d/exim stop
			fi
		fi
                # Disable in inetd
                if [ -x /usr/sbin/update-inetd ]; then
		    update-inetd --comment-chars \#disabled\# --disable smtp
		fi

		# Remove /usr/doc symlink
		if [ -L /usr/doc/exim ]; then
		    rm -f /usr/doc/exim
		fi
		;;

        failed-upgrade)
		;;
esac