summaryrefslogtreecommitdiffstats
path: root/vio/docker
diff options
context:
space:
mode:
authorliangke <lokyse@163.com>2018-03-05 15:07:20 +0800
committerliangke <lokyse@163.com>2018-03-05 15:21:04 +0800
commitdbb7e33fd422411e3ec0176e2ac214f858f548b8 (patch)
treee6f2237936e025d414d60bc55b825c3aef71cb90 /vio/docker
parent7a3e0ef783715080e57d9281d0844c438b589fdf (diff)
Create log file during configuring container
Change-Id: Icdf31c8b2b34ff0a201dc3cb1412bbf6db7a2a7f Issue-ID: MULTICLOUD-151 Signed-off-by: liangke <lokyse@163.com>
Diffstat (limited to 'vio/docker')
-rwxr-xr-xvio/docker/instance-config.sh8
-rwxr-xr-xvio/docker/instance-run.sh4
2 files changed, 9 insertions, 3 deletions
diff --git a/vio/docker/instance-config.sh b/vio/docker/instance-config.sh
index 5623109..3952a03 100755
--- a/vio/docker/instance-config.sh
+++ b/vio/docker/instance-config.sh
@@ -39,4 +39,10 @@ sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vio/vio/pub/config/config.py
cat vio/vio/pub/config/config.py
sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/run.sh
-sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/stop.sh \ No newline at end of file
+sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/stop.sh
+
+# Create log directory
+logDir="/var/log/onap/multicloud/vio"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
diff --git a/vio/docker/instance-run.sh b/vio/docker/instance-run.sh
index 9dabfa2..e5c6ec8 100755
--- a/vio/docker/instance-run.sh
+++ b/vio/docker/instance-run.sh
@@ -16,7 +16,7 @@
cd ./vio
./run.sh
-while [ ! -f logs/runtime_vio.log ]; do
+while [ ! -f /var/log/onap/multicloud/vio/vio.log ]; do
sleep 1
done
-tail -F logs/runtime_vio.log
+tail -F /var/log/onap/multicloud/vio/vio.log