Delete remaining files and folders in postrm script

This commit is contained in:
Emmanuel Papin 2014-11-28 18:32:36 +01:00
parent 8a9ad93b81
commit 720f92a6bb
1 changed files with 3 additions and 0 deletions

View File

@ -18,11 +18,14 @@ if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
if [ -f /etc/init.d/apache2 ] ; then
invoke-rc.d apache2 reload 3>/dev/null || true
fi
rm -rf /var/run/zm
rm -rf /tmp/zm
fi
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
rm -rf /tmp/zoneminder_*
fi
#DEBHELPER#