summaryrefslogblamecommitdiff
path: root/net-mgmt/flowd/pkg-deinstall
blob: 44b1289d4de657ade13da7dac9e119f721985daa (plain) (tree)



















                                                                                                            
#!/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