Correct version test for migration in Debian packaging (#278)
This commit is contained in:
parent
7c635af782
commit
be343626ed
|
@ -20,7 +20,8 @@ then
|
||||||
db_get liblemonldap-ng-conf-perl/$i || true
|
db_get liblemonldap-ng-conf-perl/$i || true
|
||||||
perl -000 -i -pe "s#^$i(\\n\\s+)('?)[^\\n]*?('?)\$#$i\${1}\${2}$RET\${3}#m" $FIRSTCONFFILE
|
perl -000 -i -pe "s#^$i(\\n\\s+)('?)[^\\n]*?('?)\$#$i\${1}\${2}$RET\${3}#m" $FIRSTCONFFILE
|
||||||
done
|
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
|
if [ -e $CONFDIR/storage.conf -o -e $CONFDIR/apply.conf -o -e $CONFDIR/apps-list.xml ] ; then
|
||||||
db_get liblemonldap-ng-conf-perl/migrate
|
db_get liblemonldap-ng-conf-perl/migrate
|
||||||
if [ "$RET" ]; then
|
if [ "$RET" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user