summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios2/files/DEINSTALL.tmpl
blob: 93ed52b4d0174c1692521a744ad720386420a423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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