From 86a29b9853f45b18bb6dea83887ace249d2d3f5d Mon Sep 17 00:00:00 2001 From: Itiligent <94789708+itiligent@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:11:21 +1000 Subject: [PATCH] change cert days prompt behaviour --- 1-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-setup.sh b/1-setup.sh index 31a1ee6..65e840f 100644 --- a/1-setup.sh +++ b/1-setup.sh @@ -610,9 +610,9 @@ if [[ -z ${SELF_SIGN} ]] && [[ "${INSTALL_NGINX}" = true ]]; then fi # Prompt to enter a self sign TLS certificate expiry -if [[ "${SELF_SIGN}" = true ]]; then +if [[ -z "${CERT_DAYS}" ]] && [[ "${SELF_SIGN}" = true ]]; then while true; do - read -p "FRONT END: Enter number of days till TLS certificates will expire [Enter for 3650]: " CERT_DAYS + read -p "FRONT END: Enter number of days till TLS certificates will expire [Enter for ${CERT_DAYS}]: " CERT_DAYS [[ "${CERT_DAYS}" = "" ]] || [[ "${CERT_DAYS}" != "" ]] && break done fi