summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-05-09 09:28:50 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-05-09 09:28:50 +0800
commit3987e36f8403607e62aa38a49e33cee41022165c (patch)
tree435dd5134ae5b87026a5a878a083d02b73728858
parentcc74e699d215d8acf87e771e5073fdda0355f945 (diff)
Fix bug for ztevnfmdriver
Change-Id: I6162c408aaec44832e83f6eef9c3894dfd77103c Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-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