Your IP : 216.73.216.170


Current Path : /var/lib/dpkg/info/
Upload File :
Current File : //var/lib/dpkg/info/dovecot-pop3d.postrm

#!/bin/sh
set -e


if [ "$1" = "remove" ]; then
	# Remove the imaps and imap option from the protocols line
	perl -pi.bak -e 'if (/^\s*protocols =/i) { s/pop3s//; s/pop3//; s/$/ none/ unless (/imap/ or /none/); s/[ \t]+/ /g; };'\
   /etc/dovecot/dovecot.conf
fi

# Restart dovecot because we've updated the configuration file.
if [ -x "/etc/init.d/dovecot" ]; then
	if [ -x /usr/sbin/invoke-rc.d ] ; then
		invoke-rc.d dovecot start
	else
		/etc/init.d/dovecot start
	fi
fi