mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
cebdb0c2fc
- Use fixed uid and gid - Rewrite the rc script to use the new rc.d style and split into two scripts: hts (for server) and htc (for client) - Bump PORTREVISION for this PR: ports/125714 (based on) Submitted by: G.V. Tjong A Hung <gvtjongahung at users.sourceforge.net> (based on)
28 lines
571 B
Bash
28 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
|