File: postrm

package info (click to toggle)
ssmtp 2.65-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: ansic: 2,035; sh: 683; makefile: 103
file content (28 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (2)
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

#DEBHELPER#

set -e

if test "$1" = "purge"
then
	if test -e /usr/share/debconf/confmodule
	then
		. /usr/share/debconf/confmodule
		db_purge
	fi

	rm -r /etc/ssmtp 2>/dev/null || true
	if test "$?" = 1
	then
		echo "/etc/ssmtp not empty -- not removed"
	fi

	if test -L /usr/doc/ssmtp
	then
		rm -f /usr/doc/ssmtp 2>/dev/null || true
	fi
fi

# Program End
exit 0