blob: 384e47482cd922d2f592d121915106a36d6f711c (
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
|
#! /bin/sh
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
PATH=/bin:/usr/bin
USER=ircd
GROUP=${USER}
if /usr/sbin/pw groupdel ${GROUP}; then
echo "Deleted group \"${GROUP}\""
else
echo "Deleting group \"${GROUP}\" failed"
exit 1
fi
if /usr/sbin/pw userdel ${USER}; then
echo "Deleted user \"${USER}\""
else
echo "Deleting user \"${USER}\" failed"
exit 1
fi
exit 0
|