diff options
author | Fu Jinhua <fu.jinhua@zte.com.cn> | 2017-09-01 06:14:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-01 06:14:39 +0000 |
commit | abd2646cefce60d250f71dbbd4b37fadae8296fb (patch) | |
tree | a09dcecf8fbdf6b72e99746f6b882574bed37164 /docker/instance_init.sh | |
parent | 4a8261f4411e6ae8eb45b01d2408cab52578970c (diff) | |
parent | f40578b051e1d230035eb300436b30dd77b41888 (diff) |
Merge "Update dockerfile of vfc-nfvo-lcm"
Diffstat (limited to 'docker/instance_init.sh')
-rwxr-xr-x | docker/instance_init.sh | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh index f880c6bc..c3a3b54e 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -10,6 +10,7 @@ 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 @@ -23,23 +24,7 @@ function create_database { bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1 } -function edit_configs { - cd /service/vfc/nfvo/lcm/ - bash docker/instance_config.sh -} - -function start_server { - cd /service/vfc/nfvo/lcm/ - bash run.sh -} - -if [ $MYSQL_ROOT_PASSWORD ]; then - install_python_libs - start_redis_server - start_mysql - create_database - edit_configs - start_server -else - echo "MYSQL_ROOT_PASSWORD environment variable not set." -fi +install_python_libs +start_redis_server +start_mysql +create_database |