change cert days prompt behaviour

This commit is contained in:
Itiligent 2024-09-05 09:11:21 +10:00
parent 802987c52d
commit 86a29b9853

View file

@ -610,9 +610,9 @@ if [[ -z ${SELF_SIGN} ]] && [[ "${INSTALL_NGINX}" = true ]]; then
fi fi
# Prompt to enter a self sign TLS certificate expiry # 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 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 [[ "${CERT_DAYS}" = "" ]] || [[ "${CERT_DAYS}" != "" ]] && break
done done
fi fi