X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc-web%2Fsrc%2Fmain%2Fscripts%2Frun.sh;h=544dd473197f88800dc5e066fa9ef097c41af993;hb=a8786c7978848bf99e8f437fb0083fce94fdf00f;hp=d2489ea07674362c310db7aec781aa9f566a4e4d;hpb=2729820a6f266dabe6fe550c0fa6e6ded6855d6d;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..544dd473 100644 --- a/installation/sdnc-web/src/main/scripts/run.sh +++ b/installation/sdnc-web/src/main/scripts/run.sh @@ -23,5 +23,47 @@ /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 " LOCALDNS: $LOCALDNS" +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