Correct version test for migration in Debian packaging (#278)

This commit is contained in:
Clément Oudot 2011-02-25 09:21:40 +00:00
parent 7c635af782
commit be343626ed

View File

@ -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