Commit 2cb54c4b authored by Clément OUDOT's avatar Clément OUDOT

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

parent 05e1b778
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment