[pkg-bacula-commits] [SCM] Bacula, a network backup, recovery and verification program branch, master, updated. debian/5.0.3-1-152-gd91b1f0
Alexander Golovko
alexandro at ankalagon.ru
Mon Jun 4 15:50:23 UTC 2012
The following commit has been merged in the master branch:
commit d91b1f0a54aa80b3bcecd8565b1e79c029b83402
Author: Alexander Golovko <alexandro at ankalagon.ru>
Date: Mon Jun 4 19:48:36 2012 +0400
fix version check for invoke-rc.d call
There is no need to call invoke-rc.d bacula-director stop from
postinst on upgrade from version 5.0.3+dfsgreal-1
diff --git a/debian/bacula-director-mysql.postinst b/debian/bacula-director-mysql.postinst
index 0e76795..e1ab30b 100644
--- a/debian/bacula-director-mysql.postinst
+++ b/debian/bacula-director-mysql.postinst
@@ -48,7 +48,7 @@ setup_etc_default bacula-director-mysql $@
case "$1" in
configure)
- if test -n "$2" && dpkg --compare-versions "$2" le "5.0.3+dfsgreal-1"; then
+ if test -n "$2" && dpkg --compare-versions "$2" lt "5.0.3+dfsgreal-1"; then
invoke-rc.d bacula-director stop || true
fi
diff --git a/debian/bacula-director-pgsql.postinst b/debian/bacula-director-pgsql.postinst
index 1347f61..c125f8c 100644
--- a/debian/bacula-director-pgsql.postinst
+++ b/debian/bacula-director-pgsql.postinst
@@ -54,7 +54,7 @@ setup_etc_default bacula-director-pgsql $@
case "$1" in
configure)
- if test -n "$2" && dpkg --compare-versions "$2" le "5.0.3+dfsgreal-1"; then
+ if test -n "$2" && dpkg --compare-versions "$2" lt "5.0.3+dfsgreal-1"; then
invoke-rc.d bacula-director stop || true
fi
diff --git a/debian/bacula-director-sqlite3.postinst b/debian/bacula-director-sqlite3.postinst
index 14bd5b9..ffd02a7 100644
--- a/debian/bacula-director-sqlite3.postinst
+++ b/debian/bacula-director-sqlite3.postinst
@@ -50,7 +50,7 @@ setup_etc_default bacula-director-sqlite3 $@
case "$1" in
configure)
- if test -n "$2" && dpkg --compare-versions "$2" le "5.0.3+dfsgreal-1"; then
+ if test -n "$2" && dpkg --compare-versions "$2" lt "5.0.3+dfsgreal-1"; then
invoke-rc.d bacula-director stop || true
fi
--
Bacula, a network backup, recovery and verification program
More information about the pkg-bacula-commits
mailing list