@extra removes user/group too
This commit is contained in:
parent
03be0d098f
commit
8edb391ee5
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL-server,v 1.7 2004/01/31 03:08:49 brad Exp $
|
||||
# $OpenBSD: DEINSTALL-server,v 1.8 2004/02/25 23:54:19 brad Exp $
|
||||
#
|
||||
# MySQL de-installation
|
||||
|
||||
@ -10,23 +10,21 @@ 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
|
||||
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"
|
||||
fi
|
||||
if [ "$PKG_DELETE_EXTRA" != Yes -a -d $SOCKET_DIR ]; then
|
||||
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
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-server,v 1.10 2004/02/22 01:20:11 brad Exp $
|
||||
@comment $OpenBSD: PLIST-server,v 1.11 2004/02/25 23:54:19 brad Exp $
|
||||
bin/comp_err
|
||||
bin/isamchk
|
||||
bin/isamlog
|
||||
@ -216,5 +216,7 @@ share/mysql/ukrainian/errmsg.txt
|
||||
@dirrm share/mysql
|
||||
@dirrm share/doc/mysql/Flags
|
||||
@dirrm share/doc/mysql
|
||||
@extraunexec userdel _mysql
|
||||
@extraunexec groupdel _mysql
|
||||
@extraunexec rm -rf ${DB_DIR}
|
||||
@extraunexec rm -rf ${SOCKET_DIR}
|
||||
|
Loading…
Reference in New Issue
Block a user