2004-06-23 04:50:00 +00:00

36 lines
1005 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/06/23 04:50:00 brad Exp $
#
# Dovecot de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SYSCONFDIR=${SYSCONFDIR:-/etc}
CONFIG_FILE=$SYSCONFDIR/dovecot.conf
DOVECOTDIR=/var/dovecot
SSL_DIR=/etc/ssl
DOVECOTUSER=_dovecot
DOVECOTGROUP=_dovecot
if [ "$PKG_DELETE_EXTRA" != Yes ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need"
echo "| to perform these steps as root:"
echo "|"
echo "| userdel $DOVECOTUSER"
echo "| groupdel $DOVECOTGROUP"
echo "| rm -f $CONFIG_FILE"
echo "| rm -rf $DOVECOTDIR"
echo "| rm $SSL_DIR/dovecot-openssl.cnf"
echo "| rm $SSL_DIR/dovecotcert.pem"
echo "| rm $SSL_DIR/private/dovecot.pem"
echo "|"
echo "| Do not do this if you plan on re-installing"
echo "| $1 at some future time."
echo "+---------------"
echo
fi
exit 0