taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 2614e46baa95748f81afaf5d05fe92d73e212688
parent 38a75ef8b13fd08b07d36fe713bb63d0619e6423
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  4 Mar 2023 19:43:23 +0100

-fix checks

Diffstat:
Mnetzbon/config_nginx.sh | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/netzbon/config_nginx.sh b/netzbon/config_nginx.sh @@ -3,10 +3,22 @@ # Inputs: DOMAIN_NAME & ENABLE_TLS + source functions.sh source config/user.conf source config/internal.conf +if test -z ${DOMAIN_NAME:-} +then + say "Error: config/user.conf does not specify DOMAIN_NAME" + exit 1 +fi +if test -z ${ENABLE_TLS:-} +then + say "Error: config/user.conf does not specify ENABLE_TLS" + exit 1 +fi + say "Configuring Nginx" systemctl start nginx @@ -25,7 +37,7 @@ ln -s ${SITES_AVAILABLE_DIR}/taler-merchant ${SITES_ENABLED_DIR}/backend.${DOMAI sed -i 's/server_name localhost/server_name bank.${DOMAIN_NAME}/g' ${SITES_AVAILABLE_DIR}/libeufin-sandbox ln -s ${SITES_AVAILABLE_DIR}/libeufin-sandbox ${SITES_ENABLED_DIR}/bank.${DOMAIN_NAME} -if test ${ENABLE_TLS} = "y" +if test ${ENABLE_TLS} == "y" then say "Obtaining TLS certificates"