Check we are in upgrade process before using dpkg --compare-versions (#739)

This commit is contained in:
Clément Oudot 2014-07-23 13:04:56 +00:00
parent 05e1b778c8
commit 2cb54c4b0d

View File

@ -17,7 +17,7 @@ db_input medium liblemonldap-ng-common-perl/managerPassword || true
db_input medium liblemonldap-ng-common-perl/portal || true
if dpkg --compare-versions $2 lt 1.0; then
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.0; then
db_input high liblemonldap-ng-common-perl/migrate || true
fi