Fix docker init sh for db 25/85425/2
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 16 Apr 2019 07:50:26 +0000 (15:50 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 16 Apr 2019 07:51:14 +0000 (15:51 +0800)
Change-Id: I24697aa52dde9c98486d165a5f44a096937ceaf2
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
docker/instance_run.sh

index 3e459ad..db286c8 100755 (executable)
@@ -24,13 +24,13 @@ function run_forever {
     while [ ! -f /var/log/mysql.log ]; do
         sleep 1
     done
-    tail -F /var/log/mysql.log 
+    tail -F /var/log/mysql.log
 }
 
 start_redis_server
 start_mysql
-if [ ! -f dbexist.txt ]; then
-    echo 1 > dbexist.txt
-    create_database
-fi 
+if [ ! -f dbexist.txt ]; then
+    echo 1 > dbexist.txt
+    create_database
+# fi
 run_forever