Check we are in upgrade process before using dpkg --compare-versions (#739)
This commit is contained in:
parent
05e1b778c8
commit
2cb54c4b0d
2
debian/liblemonldap-ng-common-perl.config
vendored
2
debian/liblemonldap-ng-common-perl.config
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user