summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2018-04-27 10:16:01 +0800
committeryangyan <yangyanyj@chinamobile.com>2018-04-27 10:16:06 +0800
commit1edea8332599487975e8367435bc4134103f019b (patch)
tree63d6992c52bf8f5cb5496fbd99e679ed882df8f0
parent27dcd0dc22af93fd11ce15cfb1ee4147ca050ff2 (diff)
Fix database start error in multi-nodes k8s env
Issue-ID: VFC-889 Change-Id: I3cedc5601aaf6b26914b7a5e043138199b71cb7b Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xres/docker/instance_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/docker/instance_init.sh b/res/docker/instance_init.sh
index 1986369..c2d91e8 100755
--- a/res/docker/instance_init.sh
+++ b/res/docker/instance_init.sh
@@ -5,7 +5,7 @@ function start_redis_server {
}
function start_mysql {
- service mysql start
+ find /var/lib/mysql -type f -exec touch {} \; && service mysql start
sleep 1
}