From 3987e36f8403607e62aa38a49e33cee41022165c Mon Sep 17 00:00:00 2001 From: fujinhua Date: Thu, 9 May 2019 09:28:50 +0800 Subject: Fix bug for ztevnfmdriver Change-Id: I6162c408aaec44832e83f6eef9c3894dfd77103c Issue-ID: VFC-1306 Signed-off-by: fujinhua --- zte/vmanager/docker/docker-entrypoint.sh | 3 +++ zte/vmanager/run.sh | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'zte/vmanager') 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 -- cgit 1.2.3-korg