summaryrefslogtreecommitdiff
path: root/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
authorthrowaway <developerthrowaway@protonmail.com>2024-04-19 13:47:02 -0700
committerthrowaway <developerthrowaway@protonmail.com>2024-04-19 13:47:20 -0700
commite31b9494af16bf833d14b6256ca055fa94b6f77b (patch)
treeb970a16d73e4a0f90a0e30228270c9d798fe79fd /docker/docker-entrypoint.sh
parent4afec792c4e7b4f9596443d83f7d43c86ceeb20d (diff)
pass array as comma separated env
Diffstat (limited to 'docker/docker-entrypoint.sh')
-rwxr-xr-xdocker/docker-entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
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