-#/bin/bash
+#!/bin/bash
+exec &> >(tee -a "/var/log/ansible-server.log")
-if [ ! -d /tmp/.ansible-server-installed]
+if [ ! -f /tmp/.ansible-server-installed ]
then
pip install PyMySQL
pip install cherrypy
fi
cd /opt/onap/sdnc
-exec python RestServer.py > RestServer.out
\ No newline at end of file
+exec /usr/bin/python RestServer.py