Skip to content

Commit fed0f42

Browse files
committed
add check for unsupported environmental variables
Signed-off-by: Simon L <[email protected]>
1 parent 43b5a7c commit fed0f42

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Containers/mastercontainer/start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,17 @@ elif mountpoint -q /etc/timezone; then
268268
exit 1
269269
fi
270270

271+
# Check if unsupported env are set (but dont exit as it would break many instances)
272+
if [ -n "$APACHE_DISABLE_REWRITE_IP" ]; then
273+
print_red "The environmental variable APACHE_DISABLE_REWRITE_IP has been set which is not supported by AIO. Please remove it!"
274+
fi
275+
if [ -n "$NEXTCLOUD_TRUSTED_DOMAINS" ]; then
276+
print_red "The environmental variable NEXTCLOUD_TRUSTED_DOMAINS has been set which is not supported by AIO. Please remove it!"
277+
fi
278+
if [ -n "$TRUSTED_PROXIES" ]; then
279+
print_red "The environmental variable TRUSTED_PROXIES has been set which is not supported by AIO. Please remove it!"
280+
fi
281+
271282
# Add important folders
272283
mkdir -p /mnt/docker-aio-config/data/
273284
mkdir -p /mnt/docker-aio-config/session/

0 commit comments

Comments
 (0)