From 35b5bb6b423691ed1819732bae4e41864112810e Mon Sep 17 00:00:00 2001 From: fujinhua Date: Wed, 8 Aug 2018 14:03:17 +0800 Subject: Remove DB and redis service from catalog Change-Id: I55361edccd5464702e828975694017b27a4f4f79 Issue-ID: VFC-978 Signed-off-by: fujinhua --- docker/instance_init.sh | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'docker/instance_init.sh') diff --git a/docker/instance_init.sh b/docker/instance_init.sh index c2401144..cfc9b0d5 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -1,29 +1,2 @@ #!/bin/bash - -function install_python_libs { - cd /service/vfc/nfvo/catalog/ - pip install -r requirements.txt -} - -function start_redis_server { - redis-server & -} - -function start_mysql { - service mysql start - sleep 1 -} - -function create_database { - cd /service/vfc/nfvo/catalog/resources/bin - if [ ! -f dbexist.txt ]; then - echo 1 > dbexist.txt - bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1 - fi - cd /service -} - -install_python_libs -start_redis_server -start_mysql -create_database +echo "No service needs init." -- cgit 1.2.3-korg