aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimoney, Daniel (dt5972) <dt5972@att.com>2018-05-01 12:42:44 -0400
committerTimoney, Daniel (dt5972) <dt5972@att.com>2018-05-01 12:42:44 -0400
commit4b4b3e31ce25d2f49bf55a762546618401a759f2 (patch)
tree6b8023d6120667e4177430032caff47ff6ce1330
parent1c7e45507c7686a236cf5f23bb572142d8be1dba (diff)
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) <dt5972@att.com> Former-commit-id: 5af9a1719e7dfd69dd298fa4efeb63b2560554e8
-rw-r--r--installation/ansible-server/src/main/scripts/startAnsibleServer.sh6
1 files changed, 3 insertions, 3 deletions
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