File: dovecot-common.postrm

package info (click to toggle)
dovecot 1.0.rc15-2etch5
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,808 kB
  • ctags: 9,428
  • sloc: ansic: 94,231; sh: 9,563; makefile: 1,320; yacc: 948; lex: 253
file content (22 lines) | stat: -rw-r--r-- 541 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
#!/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#