c55da37cb0
- updated sample configuration file - renamed startup script from nrpe2.sh to nrpe2 - changed maintainer to Jarrod Sayers <jarrot@netleader.com.au> PR: ports/114035 Submitted by: Jarrod Sayers <jarrot@netleader.com.au> Approved by: maintainer, garga (mentor)
22 lines
534 B
Bash
22 lines
534 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
NAGIOSDIR=%%NAGIOSDIR%%
|
|
NAGIOSUSER=%%NAGIOSUSER%%
|
|
NAGIOSGROUP=%%NAGIOSGROUP%%
|
|
|
|
if [ "$2" = "POST-DEINSTALL" ]; then
|
|
if /usr/sbin/pw group show "${NAGIOSGROUP}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${NAGIOSGROUP}\" group."
|
|
fi
|
|
|
|
if /usr/sbin/pw user show "${NAGIOSUSER}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${NAGIOSUSER}\" user."
|
|
fi
|
|
|
|
if [ -e "${NAGIOSDIR}" ]; then
|
|
echo "You should manually remove the \"${NAGIOSDIR}\" directory."
|
|
fi
|
|
fi
|