a5f271600b
- Add iodined manual page (links to iodine's) PR: ports/119452 (based on) Submitted by: Daniel Roethlisberger <daniel at roe.ch>
27 lines
569 B
Bash
27 lines
569 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
POST-DEINSTALL)
|
|
USER=_iodined
|
|
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
|