Browse Source

Fixed build helper script.

Martin Edenhofer 8 years ago
parent
commit
249caa122a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      script/build/test_shutdown.sh
  2. 1 1
      script/build/test_startup.sh

+ 1 - 1
script/build/test_shutdown.sh

@@ -15,7 +15,7 @@ if [ -f $SERVER_PID ]; then
    kill -9 $(cat $SERVER_PID)
    kill -9 $(cat $SERVER_PID)
 fi
 fi
 
 
-if WITH_DB; then
+if test $WITH_DB -eq 1; then
   script/build/test_cleanup.sh
   script/build/test_cleanup.sh
 fi
 fi
 
 

+ 1 - 1
script/build/test_startup.sh

@@ -4,7 +4,7 @@ APP_PORT=$2
 WS_PORT=$3
 WS_PORT=$3
 WITH_DB=$4 || 0
 WITH_DB=$4 || 0
 
 
-if WITH_DB; then
+if test $WITH_DB -eq 1; then
   script/bootstrap.sh
   script/bootstrap.sh
 fi
 fi