summaryrefslogtreecommitdiffstats
path: root/docker/instance_init.sh
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-06 16:07:44 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-06 16:21:19 +0800
commit76f3faa67bcd60ec2878afedf3872fb3508769c9 (patch)
treedb4057038fd50df1eebd88d2be251f9f8b14f4cd /docker/instance_init.sh
parent5c4dd794745980b8ea526141e0c45ffa4274b940 (diff)
Modify scripts renaming methods
Change-Id: I87aa34de1817c5060005dd4af7c1029e10a8fa79 Issu-Id: VFC-264 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
Diffstat (limited to 'docker/instance_init.sh')
-rwxr-xr-xdocker/instance_init.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index b68e621d..622477fc 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -10,13 +10,8 @@ function start_redis_server {
}
function start_mysql {
- su mysql -c /usr/bin/mysqld_safe &
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
+ sleep 1
}
function create_database {