#!/bin/sh # $OpenBSD: DEINSTALL-server,v 1.7 2004/01/31 03:08:49 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 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" if [ "$PKG_DELETE_EXTRA" != Yes -a -d $DB_DIR ]; then echo "| rm -rf $DB_DIR" fi if [ "$PKG_DELETE_EXTRA" != Yes -a -d $SOCKET_DIR ]; then echo "| rm -rf $SOCKET_DIR" fi echo "|" echo "| Do not do this if you plan on re-installing $1" echo "| at some future time." echo "+---------------" echo exit 0