From 6fbe31e8e5e49952bcd8292117012d8129959de1 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Thu, 28 Sep 2017 09:15:27 +0800 Subject: fix db script fail. Change-Id: I33efeb7414c1ced244dc7d02ba7a02937ff8e6bd Issue-Id: USECASEUI-36 Signed-off-by: Luji7 --- standalone/src/main/assembly/Dockerfile | 2 +- standalone/src/main/assembly/bin/run.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'standalone') diff --git a/standalone/src/main/assembly/Dockerfile b/standalone/src/main/assembly/Dockerfile index 1a5ed614..4d5cbe65 100644 --- a/standalone/src/main/assembly/Dockerfile +++ b/standalone/src/main/assembly/Dockerfile @@ -43,5 +43,5 @@ ADD usecase-ui-server-*-linux64.tar.gz /home/uui/ #RUN chmod 755 /home/uui/bin/*.sh -ENTRYPOINT /home/uui/resources/bin/initDB.sh root root 3306 127.0.0.1 +#ENTRYPOINT /home/uui/resources/bin/initDB.sh root root 3306 127.0.0.1 ENTRYPOINT /home/uui/bin/run.sh diff --git a/standalone/src/main/assembly/bin/run.sh b/standalone/src/main/assembly/bin/run.sh index cccbb8e1..9ef6e07a 100644 --- a/standalone/src/main/assembly/bin/run.sh +++ b/standalone/src/main/assembly/bin/run.sh @@ -23,6 +23,10 @@ echo "Starting mysql" service mysql start sleep 1 +SCRIPT="/home/uui/resources/bin/initDB.sh" +chmod 755 "$SCRIPT" +"$SCRIPT" root root 3306 127.0.0.1 + echo @JAVA_HOME@ $JAVA_HOME JAVA="$JAVA_HOME/bin/java" echo @JAVA@ $JAVA -- cgit 1.2.3-korg