tags 595902 patch
thanks
On Mon, Sep 06, 2010 at 11:06:32PM -0700, Vagrant Cascadian wrote:
> it first prompts the user that zoneminder has been stopped, and then prompts
> the user if they want to back up the database:
>
> zmupdate.pl --version $OLD_ZM_VERSION
apparently it has a hidden --nointeractive option. the following patch should
handle it:
diff -r 656fc3fd933f debian/postinst
--- a/debian/postinst Mon Sep 06 21:49:39 2010 -0700
+++ b/debian/postinst Tue Sep 07 22:52:01 2010 -0700
@@ -29,7 +29,7 @@
echo 'grant lock tables, alter on zm.* to
'zmuser'@localhost identified by "zmpass";' | mysql
--defaults-file=/etc/mysql/debian.cnf mysql
# stop zoneminder before performing database
upgrade.
invoke-rc.d zoneminder stop || true
- zmupdate.pl --version $OLD_ZM_VERSION
+ zmupdate.pl --nointeractive --version
$OLD_ZM_VERSION
fi
else
although this does appear to unconditionally upgrade the database without
presenting an opportunity to back it up...
there also may be other zmupdate.pl codepaths which still prompt; the
--nointeractive option seems only partially implemented, though that may only
be when upgrading from really old versions of zoneminder.
live well,
vagrant
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]