2013-04-30 04:46:56 +08:00
|
|
|
#! /bin/sh
|
2016-04-06 20:43:20 +08:00
|
|
|
set -e
|
2013-04-30 04:46:56 +08:00
|
|
|
|
|
|
|
if [ "$1" = "purge" ]; then
|
2016-04-06 20:43:20 +08:00
|
|
|
if [ -e "/etc/init.d/mysql" ]; then
|
|
|
|
echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
|
|
|
echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
|
|
|
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm
|
|
|
|
fi
|
2013-04-30 04:46:56 +08:00
|
|
|
fi
|
|
|
|
#DEBHELPER#
|