Commit 14866479 authored by Clément OUDOT's avatar Clément OUDOT

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

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@3512 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 015eefd5
......@@ -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