From fed0f42fed442c71d370a15dfc2c571742202ada Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 14 Aug 2023 12:17:00 +0200 Subject: [PATCH 1/2] add check for unsupported environmental variables Signed-off-by: Simon L --- Containers/mastercontainer/start.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 2e132479..2d78f812 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -268,6 +268,17 @@ elif mountpoint -q /etc/timezone; then exit 1 fi +# Check if unsupported env are set (but dont exit as it would break many instances) +if [ -n "$APACHE_DISABLE_REWRITE_IP" ]; then + print_red "The environmental variable APACHE_DISABLE_REWRITE_IP has been set which is not supported by AIO. Please remove it!" +fi +if [ -n "$NEXTCLOUD_TRUSTED_DOMAINS" ]; then + print_red "The environmental variable NEXTCLOUD_TRUSTED_DOMAINS has been set which is not supported by AIO. Please remove it!" +fi +if [ -n "$TRUSTED_PROXIES" ]; then + print_red "The environmental variable TRUSTED_PROXIES has been set which is not supported by AIO. Please remove it!" +fi + # Add important folders mkdir -p /mnt/docker-aio-config/data/ mkdir -p /mnt/docker-aio-config/session/ From 378989ecb4d374b302e6206f623a7a94a420b1fe Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 14 Aug 2023 12:20:53 +0200 Subject: [PATCH 2/2] address review Signed-off-by: Simon L Co-authored-by: Zoey Signed-off-by: Simon L. --- Containers/mastercontainer/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 2d78f812..c256ed3c 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -268,7 +268,7 @@ elif mountpoint -q /etc/timezone; then exit 1 fi -# Check if unsupported env are set (but dont exit as it would break many instances) +# Check if unsupported env are set (but don't exit as it would break many instances) if [ -n "$APACHE_DISABLE_REWRITE_IP" ]; then print_red "The environmental variable APACHE_DISABLE_REWRITE_IP has been set which is not supported by AIO. Please remove it!" fi