summaryrefslogtreecommitdiff
path: root/net/spread/pkg-deinstall
blob: 1bc2206605ca657962285dd559a9d8af722c4428 (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
24
25
26
27
28
29
#!/bin/sh
#
# $FreeBSD$

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

USER=spread
GROUP=spread

echo "===> deinstall note:"
echo "      Please note that user ${USER} and group ${GROUP} was not removed"
echo "      from this system:"
echo ""

if pw usershow "${USER}" 2>/dev/null 1>&2; then
	echo "      To delete spread user permanently"
	echo "         $ pw userdel ${USER}"
	echo ""
fi

if pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
	echo "      To delete spread group permanently"
	echo "         $ pw groupdel ${GROUP}"
	echo ""
fi

exit 0