openbsd-ports/databases/mysql/pkg/DEINSTALL-server
2004-02-25 23:54:19 +00:00

31 lines
766 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL-server,v 1.8 2004/02/25 23:54:19 brad Exp $
#
# MySQL de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
DB_DIR=${DB_DIR}
SOCKET_DIR=${SOCKET_DIR}
MYSQLUSER=_mysql
MYSQLGROUP=_mysql
if [ "$PKG_DELETE_EXTRA" != Yes ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need"
echo "| to perform these steps as root:"
echo "|"
echo "| userdel $MYSQLUSER"
echo "| groupdel $MYSQLGROUP"
echo "| rm -rf $DB_DIR"
echo "| rm -rf $SOCKET_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0