freebsd-ports/net-mgmt/flowd/pkg-deinstall
Kevin Lo 32ad3aa428 - Add privilege separation user handling.
- Bump PORTREVISION

PR: ports/76669
Submitted by: MAINTAINER
2005-01-26 05:13:28 +00:00

20 lines
286 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
FLOWD_USER=${FLOWD_USER:=_flowd}
delete_user() {
if pw usershow ${FLOWD_USER} 2>/dev/null 1>&2; then
echo "To delete flowd privilege separation user permanently, use 'pw userdel ${FLOWD_USER}'"
fi
}
case $2 in
POST-DEINSTALL)
delete_user
;;
esac