X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc-web%2Fsrc%2Fmain%2Fscripts%2Frun.sh;h=9d912a6528b92f72ddd02560aebb05c41c8f52ea;hb=c553802849a383176eca863fc35694426f9d31cb;hp=d2489ea07674362c310db7aec781aa9f566a4e4d;hpb=6862799321b85f364a3fa1be8639bed1de3b9d23;p=sdnc%2Foam.git diff --git a/installation/sdnc-web/src/main/scripts/run.sh b/installation/sdnc-web/src/main/scripts/run.sh index d2489ea0..9d912a65 100644 --- a/installation/sdnc-web/src/main/scripts/run.sh +++ b/installation/sdnc-web/src/main/scripts/run.sh @@ -23,5 +23,49 @@ /opt/bitnami/nginx/sbin/configure.sh +echo "starting sdnc-web" +echo "=================" +echo " WEBPROTOCOL : $WEBPROTOCOL" +echo " WEBPORT : $WEBPORT" +echo " SDNRPROTOCOL : $SDNRPROTOCOL" +echo " SDNRHOST : $SDNRHOST" +echo " SDNRPORT : $SDNRPORT" +echo " TRPCEURL : $TRPCEURL" +echo " TOPOURL : $TOPOURL" +echo " TILEURL : $TILEURL" +echo " SSL_CERT_DIR : $SSL_CERT_DIR" +echo -n " SSL_CERTIFICATE: $SSL_CERTIFICATE" +if [ -f "$SSL_CERTIFICATE" ]; then +echo " (exists)" +else +echo " (missing)" +fi +echo -n " SSL_CERTIFICATE_KEY: $SSL_CERTIFICATE_KEY" +if [ -f "$SSL_CERTIFICATE_KEY" ]; then +echo " (exists)" +else +echo " (missing)" +fi +echo "" + +if [ ! -z "$DEBUG" ]; then + + if [ -f "/opt/bitnami/nginx/conf/server_blocks/http_site.conf" ]; then + echo "content of /opt/bitnami/nginx/conf/server_blocks/http_site.conf" + echo "===============================================================" + cat /opt/bitnami/nginx/conf/server_blocks/http_site.conf + echo "===============================================================" + fi + + if [ -f "/opt/bitnami/nginx/conf/server_blocks/https_site.conf" ]; then + echo "content of /opt/bitnami/nginx/conf/server_blocks/https_site.conf" + echo "===============================================================" + cat /opt/bitnami/nginx/conf/server_blocks/https_site.conf + echo "===============================================================" + fi + + #tail -f /opt/bitnami/nginx/logs/* & +fi + # Call the base images' run.sh to start NGINX -bash /run.sh \ No newline at end of file +bash /run.sh