From a12ed0cc18bc419fcfea07416ca445c9a79166bc Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Wed, 16 Mar 2022 17:51:25 +0530 Subject: [PATCH] Fix nginx not starting in fat container (#11909) --- deploy/docker/scripts/run-nginx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/docker/scripts/run-nginx.sh b/deploy/docker/scripts/run-nginx.sh index 06ee5ee669..5126eb6188 100755 --- a/deploy/docker/scripts/run-nginx.sh +++ b/deploy/docker/scripts/run-nginx.sh @@ -11,7 +11,7 @@ https_conf="/opt/appsmith/templates/nginx-app-https.conf.template.sh" APP_TEMPLATE="$http_conf" # Check exist certificate with given custom domain -if [[ -n $APPSMITH_CUSTOM_DOMAIN ]]; then +if [[ -n ${APPSMITH_CUSTOM_DOMAIN:-} ]]; then APP_TEMPLATE="$https_conf" if ! [[ -e "/etc/letsencrypt/live/$APPSMITH_CUSTOM_DOMAIN" ]]; then source "/opt/appsmith/init_ssl_cert.sh" @@ -22,7 +22,7 @@ if [[ -n $APPSMITH_CUSTOM_DOMAIN ]]; then fi fi -bash "$APP_TEMPLATE" "$APPSMITH_CUSTOM_DOMAIN" > /etc/nginx/sites-available/default +bash "$APP_TEMPLATE" "${APPSMITH_CUSTOM_DOMAIN:-}" > /etc/nginx/sites-available/default index_html_served=/opt/appsmith/editor/index.html index_html_original=/opt/appsmith/index.html.original