2002-02-18 22:58:57 -05:00
|
|
|
# $OpenBSD: DEINSTALL-server,v 1.3 2002/02/19 03:58:57 brad Exp $
|
2000-01-01 00:54:12 -05:00
|
|
|
#
|
|
|
|
# MySQL de-installation
|
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
2000-08-15 09:24:00 -04:00
|
|
|
DB_DIR=${DB_DIR}
|
2002-02-18 22:58:57 -05:00
|
|
|
SOCKET_DIR=${SOCKET_DIR}
|
2000-08-15 09:24:00 -04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "+---------------"
|
2001-06-02 17:57:05 -04:00
|
|
|
echo "| To completely deinstall the $1 package you need"
|
|
|
|
echo "| to perform these steps as root:"
|
2000-08-15 09:24:00 -04:00
|
|
|
echo "|"
|
2000-09-06 17:06:20 -04:00
|
|
|
echo "| userdel mysql"
|
|
|
|
echo "| groupdel mysql"
|
2000-08-15 09:24:00 -04:00
|
|
|
echo "| rm -rf $DB_DIR"
|
2002-02-18 22:58:57 -05:00
|
|
|
echo "| rm -rf $SOCKET_DIR"
|
2000-08-15 09:24:00 -04:00
|
|
|
echo "|"
|
|
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
|
|
echo "| at some future time."
|
|
|
|
echo "+---------------"
|
|
|
|
echo
|
2000-01-01 00:54:12 -05:00
|
|
|
|
|
|
|
exit 0
|