1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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