mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
9466619af6
- Provide pkg-deinstall - Cleanup PR: 86901 Submitted by: Chris Mikkelson <cmikk@qwest.net> Approved by: maintainer timeout (16 days after postponement)
30 lines
553 B
Bash
30 lines
553 B
Bash
#!/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
|