Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
c5dc0af24c
commit
afd77a6a30
1 changed files with 4 additions and 1 deletions
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue