diff options
Diffstat (limited to 'net-mgmt/nagios/files/DEINSTALL.tmpl')
-rw-r--r-- | net-mgmt/nagios/files/DEINSTALL.tmpl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-mgmt/nagios/files/DEINSTALL.tmpl b/net-mgmt/nagios/files/DEINSTALL.tmpl new file mode 100644 index 000000000000..93ed52b4d017 --- /dev/null +++ b/net-mgmt/nagios/files/DEINSTALL.tmpl @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +USER=%%NAGIOSUSER%% +GROUP=%%NAGIOSGROUP%% +DIR=%%NAGIOSDIR%% + +if [ "$2" = "POST-DEINSTALL" ]; then + + if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then + echo "You should manually remove the \"${GROUP}\" group." + fi + + if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then + echo "You should manually remove the \"${USER}\" user." + fi + + if [ -e ${DIR} ]; then + echo "You should manually remove the \"${DIR}\" directory." + fi +fi |