Fix broken database migration from L&B 3.0 -> L&B 4.0.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 13 Nov 2012 16:19:42 +0000 (16:19 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 13 Nov 2012 16:19:42 +0000 (16:19 +0000)
org.glite.lb.server/config/glite-lb-migrate_db2version40
org.glite.lb.server/config/setup

index 76762f1..7c4643b 100755 (executable)
@@ -21,6 +21,7 @@ EOF
 
 while getopts "d:h" OPTION 
 do
+    case "$OPTION" in
     "d") DB_NAME=$OPTARG
     ;;
 
index 3820655..1911eae 100755 (executable)
@@ -324,7 +324,7 @@ EOF
        # migrate L&B 3.x to L&B 4.0
        if test -f $GLITE_LOCATION/sbin/glite-lb-migrate_db2version40; then
                if ! check_mysql_table lbserver20 job_connections; then
-                       sh $GLITE_LOCATION/sbin/glite-lb-migrate_db2version40 -s
+                       sh $GLITE_LOCATION/sbin/glite-lb-migrate_db2version40
                        if test $? -eq 0; then
                                qecho "Database migrated to L&B 4.x"
                        else