diff options
Diffstat (limited to 'net-mgmt/flowd/pkg-deinstall')
-rw-r--r-- | net-mgmt/flowd/pkg-deinstall | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/flowd/pkg-deinstall b/net-mgmt/flowd/pkg-deinstall new file mode 100644 index 000000000000..44b1289d4de6 --- /dev/null +++ b/net-mgmt/flowd/pkg-deinstall @@ -0,0 +1,20 @@ +#!/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 |