27 lines
399 B
Text
27 lines
399 B
Text
|
#! /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
|