Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
48ef247
)
Add mysql initialize script
77/9677/2
author
fujinhua
<fu.jinhua@zte.com.cn>
Thu, 31 Aug 2017 12:24:07 +0000
(20:24 +0800)
committer
Fu Jinhua
<fu.jinhua@zte.com.cn>
Thu, 31 Aug 2017 13:19:34 +0000
(13:19 +0000)
run verify job again
Change-Id: I1a59a895ca81f50ad2ef95080d856720f3972314
Issue-Id: VFC-198
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/docker/instance_init.sh
patch
|
blob
|
history
diff --git
a/lcm/docker/instance_init.sh
b/lcm/docker/instance_init.sh
index
ecf9e86
..
03c10a8
100755
(executable)
--- a/
lcm/docker/instance_init.sh
+++ b/
lcm/docker/instance_init.sh
@@
-10,6
+10,11
@@
function start_redis_server {
function start_mysql {
service mysql start
+ # Wait for mysql to initialize; Set mysql root password
+ for i in {1..10}; do
+ sleep $i
+ bash /usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD &> /dev/null && break
+ done
}
function create_database {