From afd77a6a30bf298561fa5d968fe1ac15a57d8482 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 14 Oct 2023 18:55:09 +0200 Subject: [PATCH] HTTPS: Skip default certificate creation if TLS is disabled #3819 #3823 Signed-off-by: Michael Mayer --- scripts/dist/install-https.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/dist/install-https.sh b/scripts/dist/install-https.sh index 68e0d70cb..bc682d1d0 100755 --- a/scripts/dist/install-https.sh +++ b/scripts/dist/install-https.sh @@ -11,10 +11,13 @@ if [[ $(id -u) != "0" ]]; then exit 1 fi -# Abort if PHOTOPRISM_DEFAULT_TLS is "false". +# Abort if PHOTOPRISM_DEFAULT_TLS is "false" or PHOTOPRISM_DISABLE_TLS is "true". if [[ ${PHOTOPRISM_DEFAULT_TLS} = "false" ]]; then echo "Creation of a default HTTPS/TLS certificate is skipped because PHOTOPRISM_DEFAULT_TLS is \"false\"." exit 0 +elif [[ ${PHOTOPRISM_DISABLE_TLS} = "true" ]]; then + echo "Creation of a default HTTPS/TLS certificate is skipped because PHOTOPRISM_DISABLE_TLS is \"true\"." + exit 0 fi # shellcheck disable=SC2164