mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-26 06:43:16 +08:00
add check for unsupported environmental variables
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
43b5a7c8bb
commit
fed0f42fed
1 changed files with 11 additions and 0 deletions
|
@ -268,6 +268,17 @@ elif mountpoint -q /etc/timezone; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Add important folders
|
||||||
mkdir -p /mnt/docker-aio-config/data/
|
mkdir -p /mnt/docker-aio-config/data/
|
||||||
mkdir -p /mnt/docker-aio-config/session/
|
mkdir -p /mnt/docker-aio-config/session/
|
||||||
|
|
Loading…
Reference in a new issue