fd71f08359
- clean-up pkg/INSTALL (qmail now builds as non-root, if qmail accounts exist) The mysql and postfix ports could also use the create_user and/or create_group shell functions, as they do a bit more error-checking. - add obsd tags to INSTALL/DEINSTALL - fix mastersite - explicit warning that qmail does not automagically work after install
65 lines
1.0 KiB
Bash
65 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.2 2000/02/23 10:26:14 camield Exp $
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
QMAILDIR=${PKG_PREFIX:-/var/qmail}
|
|
|
|
do_accts()
|
|
{
|
|
echo
|
|
echo "- remove qmail users"
|
|
echo "rmuser alias"
|
|
echo "rmuser qmaild"
|
|
echo "rmuser qmaill"
|
|
echo "rmuser qmailp"
|
|
echo "rmuser qmailq"
|
|
echo "rmuser qmailr"
|
|
echo "rmuser qmails"
|
|
}
|
|
|
|
do_groups()
|
|
{
|
|
echo
|
|
echo "- remove qmail groups"
|
|
echo "rmgroup qmail"
|
|
echo "rmgroup nofiles"
|
|
}
|
|
|
|
do_qmaildir()
|
|
{
|
|
echo
|
|
echo "- remove remaining qmail files"
|
|
echo "rm -rf $QMAILDIR"
|
|
}
|
|
|
|
do_misc()
|
|
{
|
|
echo
|
|
echo "- check that qmail daemons are no longer started"
|
|
echo " (/etc/rc.local, /etc/inetd.conf, /etc/mailer.conf)"
|
|
|
|
}
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 distname { DEINSTALL }" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case $2 in
|
|
DEINSTALL)
|
|
echo "----------------"
|
|
echo "To completely remove qmail do the following as root:"
|
|
echo "----------------"
|
|
do_accts
|
|
do_groups
|
|
do_qmaildir
|
|
do_misc
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` distname DEINSTALL" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|