zoneminder/distros/ubuntu1504/postrm

10 lines
353 B
Plaintext
Raw Normal View History

2015-05-25 04:01:51 +08:00
#! /bin/sh
# set -e # to be reinstated later
if [ "$1" = "purge" ]; 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
#DEBHELPER#