mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
5
scripts/dist/install-https.sh
vendored
5
scripts/dist/install-https.sh
vendored
@@ -11,10 +11,13 @@ if [[ $(id -u) != "0" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ ${PHOTOPRISM_DEFAULT_TLS} = "false" ]]; then
|
||||||
echo "Creation of a default HTTPS/TLS certificate is skipped because PHOTOPRISM_DEFAULT_TLS is \"false\"."
|
echo "Creation of a default HTTPS/TLS certificate is skipped because PHOTOPRISM_DEFAULT_TLS is \"false\"."
|
||||||
exit 0
|
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
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2164
|
# shellcheck disable=SC2164
|
||||||
|
|||||||
Reference in New Issue
Block a user