From b1adf4c6506c61ed96b9634ba3b2710f6e5e2091 Mon Sep 17 00:00:00 2001 From: SteveWW Date: Wed, 1 Sep 2021 12:27:45 +0100 Subject: [PATCH] fix typo --- web/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/entrypoint.sh b/web/entrypoint.sh index 0799d01..a918511 100755 --- a/web/entrypoint.sh +++ b/web/entrypoint.sh @@ -31,9 +31,9 @@ chmod 644 $BASE_DIR/eum.html # apply environment variables to default.conf envsubst '${CATALOGUE_HOST} ${USER_HOST} ${CART_HOST} ${SHIPPING_HOST} ${PAYMENT_HOST} ${RATINGS_HOST}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf -if [ -f /tmp/ngx_http_opnetracing_module.so -a -f /tmp/libinstana_sensor.so ] +if [ -f /tmp/ngx_http_opentracing_module.so -a -f /tmp/libinstana_sensor.so ] then - # Patching for Instana tracing + echo "Patching for Instana tracing" mv /tmp/ngx_http_opentracing_module.so /usr/lib/nginx/modules mv /tmp/libinstana_sensor.so /usr/local/lib cat - /etc/nginx/nginx.conf << !EOF! > /tmp/nginx.conf @@ -51,6 +51,7 @@ env INSTANA_DEV; mv /tmp/nginx.conf /etc/nginx/nginx.conf echo "{}" > /etc/instana-config.json else + echo "Tracing not enabled" # remove tracing config sed -i '1,3d' /etc/nginx/conf.d/default.conf fi