summaryrefslogtreecommitdiffstats
path: root/lcm/docker
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2018-04-27 10:19:01 +0800
committeryangyan <yangyanyj@chinamobile.com>2018-04-27 10:20:16 +0800
commit1f98be8e933753c1ad97ce0fd8883d95899e212a (patch)
treef8847b4b45cfbc4e074ab5448152ad85c803d6a0 /lcm/docker
parent638f176eabf0f100112c3e0185d7cc5339c82ef5 (diff)
Fix database start error in multi-nodes k8s env
Change-Id: Ib7db56e24a1c717d0d81466dffede5c65921f6fb Issue-ID: VFC-889 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm/docker')
-rwxr-xr-xlcm/docker/instance_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index 90468f83..599584d4 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/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
}