opnsense-ports/www/httptunnel/pkg-deinstall
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

27 lines
571 B
Bash

#!/bin/sh
case $2 in
POST-DEINSTALL)
USER=httptunnel
GROUP=${USER}
PW=/usr/sbin/pw
if ${PW} groupshow "${GROUP}" 2>/dev/null 1>&2; then
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
echo "To delete the ${USER} group permanently, use '${PW} groupdel ${GROUP}'."
else
${PW} groupdel ${USER}
fi
fi
if ${PW} usershow "${USER}" 2>/dev/null 1>&2; then
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
echo "To delete the ${USER} user permanently, use '${PW} userdel ${USER}'."
else
${PW} userdel ${USER}
fi
fi
exit 0
;;
esac