~ubuntu-branches/ubuntu/hoary/dovecot/hoary-security

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

PATH=/usr/sbin:$PATH
export PATH

if [ "$1" = "purge" ] ; then
        userdel dovecot || true;
	cd /etc/ssl/certs
	PATH=$PATH:/usr/bin/ssl
	if [ -f dovecot.pem ]; then
		echo "SSL certificate /etc/ssl/certs/dovecot.pem is NOT removed."
		echo "Please remove manually if required."
	fi
	if [ -f ../private/dovecot.pem ]; then
		echo "SSL certificate /etc/ssl/private/dovecot.pem is NOT removed."
		echo "Please remove manually if required."
	fi
	if [ -d /var/run/dovecot ]; then rm -rf /var/run/dovecot; fi
fi

#DEBHELPER#