From e31b9494af16bf833d14b6256ca055fa94b6f77b Mon Sep 17 00:00:00 2001 From: throwaway Date: Fri, 19 Apr 2024 13:47:02 -0700 Subject: pass array as comma separated env --- docker/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docker/docker-entrypoint.sh') diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index ca0c4bc..bdb706a 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -5,6 +5,10 @@ set -e FOURGET_PROTO="${FOURGET_PROTO%\"}" FOURGET_PROTO="${FOURGET_PROTO#\"}" +# make lowercase +FOURGET_PROTO=`echo $FOURGET_PROTO | awk '{print tolower($0)}'` + + if [ "$FOURGET_PROTO" = "https" ] || [ -f /etc/4get/certs/fullchain.pem ] || [ -f /etc/4get/certs/privkey.pem ]; then echo "Using https configuration" cp /etc/apache2/https.conf /etc/apache2/httpd.conf -- cgit v1.2.3