freebsd-ports/net-mgmt/nagios-devel/files/pkg-deinstall.in
Sergey Matveychuk 7cd81ff1ce New port: net-mgmt/nagios-devel Nagios development stream (3.0.b2)
PR:		ports/114763
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au>
2007-08-30 14:54:59 +00:00

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