From 4b4b3e31ce25d2f49bf55a762546618401a759f2 Mon Sep 17 00:00:00 2001 From: "Timoney, Daniel (dt5972)" Date: Tue, 1 May 2018 12:42:44 -0400 Subject: Fix ansible startup script Fixed ansible startup script to (1) fix first line to use /bin/bash and (2) write to both stdout and to /var/log/ansible-server.log so that docker-compose logs can be used to see messages on failure Change-Id: I3895329aa3ca2b805aebb8c00d5876f337fd7944 Issue-ID: SDNC-295 Signed-off-by: Timoney, Daniel (dt5972) Former-commit-id: 5af9a1719e7dfd69dd298fa4efeb63b2560554e8 --- installation/ansible-server/src/main/scripts/startAnsibleServer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'installation/ansible-server/src') diff --git a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh index eec62ba6..f1e93168 100644 --- a/installation/ansible-server/src/main/scripts/startAnsibleServer.sh +++ b/installation/ansible-server/src/main/scripts/startAnsibleServer.sh @@ -1,5 +1,5 @@ -#/bin/bash -exec &> /var/log/ansible-server.log +#!/bin/bash +exec &> >(tee -a "/var/log/ansible-server.log") if [ ! -f /tmp/.ansible-server-installed ] then @@ -14,4 +14,4 @@ then fi cd /opt/onap/sdnc -exec python RestServer.py \ No newline at end of file +exec /usr/bin/python RestServer.py -- cgit 1.2.3-korg