#!/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 bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1 cd /service } install_python_libs start_redis_server start_mysql create_database