aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/instance_run.sh')
-rwxr-xr-xdocker/instance_run.sh17
1 files changed, 1 insertions, 16 deletions
diff --git a/docker/instance_run.sh b/docker/instance_run.sh
index d110109..f72a451 100755
--- a/docker/instance_run.sh
+++ b/docker/instance_run.sh
@@ -9,17 +9,6 @@ function start_mysql {
sleep 1
}
-function create_database {
- cd /service/vfc/nfvo/db/resources
- for ms in $(ls)
- do
- cd $ms/bin
- bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1
- cd /service/vfc/nfvo/db/resources
- done
- cd /service
-}
-
function run_forever {
while [ ! -f /var/log/mysql.log ]; do
sleep 1
@@ -29,10 +18,6 @@ function run_forever {
start_redis_server
start_mysql
-mysql -uroot -p$MYSQL_ROOT_PASSWORD -e " GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;"
+mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;"
mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "flush privileges;"
-# if [ ! -f dbexist.txt ]; then
-# echo 1 > dbexist.txt
-# create_database
-# fi
run_forever