Add dns config, fix ansible start script
[sdnc/oam.git] / installation / ansible-server / src / main / scripts / startAnsibleServer.sh
index 643bbab..eec62ba 100644 (file)
@@ -1,6 +1,7 @@
 #/bin/bash
+exec &> /var/log/ansible-server.log
 
-if [ ! -d /tmp/.ansible-server-installed]
+if [ ! -f /tmp/.ansible-server-installed ]
 then
        pip install PyMySQL
        pip install cherrypy
@@ -13,4 +14,4 @@ then
 fi
 
 cd /opt/onap/sdnc
-exec python RestServer.py > RestServer.out
\ No newline at end of file
+exec python RestServer.py
\ No newline at end of file