tags 497107 patch
thanks

Package: zoneminder
Version: 1.24.2-4
Followup-For: Bug #497107

seems like the database should only be removed on purge. the following one-line
patch should do:

--- postrm.orig 2010-06-25 12:36:21.000000000 -0700
+++ postrm      2010-06-25 12:36:31.000000000 -0700
@@ -1,7 +1,7 @@
 #! /bin/sh
 # set -e # to be reinstated later

-if [ "$1" = "remove" ]; then
+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

live well,
  vagrant



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to