summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xzte/vmanager/docker/docker-entrypoint.sh3
-rwxr-xr-xzte/vmanager/run.sh8
2 files changed, 4 insertions, 7 deletions
diff --git a/zte/vmanager/docker/docker-entrypoint.sh b/zte/vmanager/docker/docker-entrypoint.sh
index ef779a44..38eb4666 100755
--- a/zte/vmanager/docker/docker-entrypoint.sh
+++ b/zte/vmanager/docker/docker-entrypoint.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+sudo chown onap:onap -R /service
+find /service -name '*.sh'|xargs chmod a+x
+
if [ -z "$SERVICE_IP" ]; then
export SERVICE_IP=`hostname -i`
fi
diff --git a/zte/vmanager/run.sh b/zte/vmanager/run.sh
index 1135968e..5cc179f7 100755
--- a/zte/vmanager/run.sh
+++ b/zte/vmanager/run.sh
@@ -15,7 +15,7 @@
logDir="/var/log/onap/vfc/ztevnfmdriver/"
if [ ! -x $logDir ]; then
- mkdir -p $logDir
+ mkdir -p $logDir
fi
# nohup python manage.py runserver 0.0.0.0:8410 > /dev/null &
@@ -25,9 +25,3 @@ if [ "${SSL_ENABLED}" = "true" ]; then
else
nohup uwsgi --http :8410 -t 120 --module driver.wsgi --master --processes 4 &
fi
-
-while [ ! -f $logDir/runtime_ztevnfmdriver.log ]; do
- sleep 1
-done
-
-tail -F $logDir/runtime_ztevnfmdriver.log