Code Review
/
vfc
/
nfvo
/
lcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
653a790
)
Database reinitialization protection
45/46545/1
author
yangyan
<yangyanyj@chinamobile.com>
Tue, 8 May 2018 08:15:14 +0000
(16:15 +0800)
committer
yangyan
<yangyanyj@chinamobile.com>
Tue, 8 May 2018 08:16:14 +0000
(16:16 +0800)
Issue-ID: VFC-900
Change-Id: I33b2720070949d2371997dc8caeeecf1d369f821
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
docker/instance_init.sh
patch
|
blob
|
history
diff --git
a/docker/instance_init.sh
b/docker/instance_init.sh
index
e8ee4bb
..
daafcc2
100755
(executable)
--- a/
docker/instance_init.sh
+++ b/
docker/instance_init.sh
@@
-11,7
+11,10
@@
function start_mysql {
function create_database {
cd /service/vfc/nfvo/lcm/resources/bin
- bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1
+ if [ ! -f dbexist.txt ]; then
+ echo 1 > dbexist.txt
+ bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1
+ fi
cd /service
}