From be343626eda23e43c4c6c6486b5fe3240a2cb43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Fri, 25 Feb 2011 09:21:40 +0000 Subject: [PATCH] Correct version test for migration in Debian packaging (#278) --- build/lemonldap-ng/debian/liblemonldap-ng-conf-perl.postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/lemonldap-ng/debian/liblemonldap-ng-conf-perl.postinst b/build/lemonldap-ng/debian/liblemonldap-ng-conf-perl.postinst index b4c8de7a8..5f4a13620 100755 --- a/build/lemonldap-ng/debian/liblemonldap-ng-conf-perl.postinst +++ b/build/lemonldap-ng/debian/liblemonldap-ng-conf-perl.postinst @@ -20,7 +20,8 @@ then db_get liblemonldap-ng-conf-perl/$i || true perl -000 -i -pe "s#^$i(\\n\\s+)('?)[^\\n]*?('?)\$#$i\${1}\${2}$RET\${3}#m" $FIRSTCONFFILE done - if [ `echo $2|sed -e 's/^0\.9.*$/X/'` = "X" ]; then + testversion=`echo $2|sed -e 's/^0\.9.*$/X/'` + if [ "$testversion" = "X" ]; then if [ -e $CONFDIR/storage.conf -o -e $CONFDIR/apply.conf -o -e $CONFDIR/apps-list.xml ] ; then db_get liblemonldap-ng-conf-perl/migrate if [ "$RET" ]; then