From 97260b0080950fc5ff59c26b25ec8601bb77cbb2 Mon Sep 17 00:00:00 2001 From: gyurix Date: Thu, 16 Sep 2021 21:28:55 +0200 Subject: [PATCH] Minor syntax bugfix. --- scripts/nginx_config_create.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/nginx_config_create.sh b/scripts/nginx_config_create.sh index 7d19bed..fa6d4fc 100755 --- a/scripts/nginx_config_create.sh +++ b/scripts/nginx_config_create.sh @@ -83,7 +83,7 @@ listen $HTTPS_PORT ssl; server_name $DOMAIN_NAME; rewrite_log on;" - if [[ $REDIRECT_HTTPS != "" && $HTTP_PORT != "" ]]; then + if [[ $REDIRECT_HTTPS != "" ]]; then echo "return 301 $REDIRECT_HTTPS;" else @@ -126,8 +126,11 @@ location = /$ERROR_PAGE { proxy_set_header Connection "'$http_connection'"; proxy_cookie_path / /; access_log off; -} }" + fi + +echo "}" + fi } >> "$file"