From ec8321bb9ae5dd2b9b6696da5f64c60055e97a55 Mon Sep 17 00:00:00 2001 From: Michael Dürre Date: Fri, 28 Feb 2020 10:39:19 +0100 Subject: fixed sdncweb helpserver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixed unresolved meta.json for helpserver Issue-ID: SDNC-1089 Signed-off-by: Michael Dürre Change-Id: I58b30872bfe4260f8be1c0ade870f8b3d3698798 Former-commit-id: a8786c7978848bf99e8f437fb0083fce94fdf00f --- installation/sdnc-web/src/main/scripts/run.sh | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'installation/sdnc-web/src/main/scripts/run.sh') 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 -- cgit 1.2.3-korg