Skip to content

Commit

Permalink
Merge pull request #3154 from nextcloud/enh/noid/add-unsupported-env-…
Browse files Browse the repository at this point in the history
…check

add check for unsupported environmental variables
  • Loading branch information
szaimen authored Aug 17, 2023
2 parents c153fed + 378989e commit 4e166bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Containers/mastercontainer/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ elif mountpoint -q /etc/timezone; then
exit 1
fi

# 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
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/
Expand Down

0 comments on commit 4e166bd

Please sign in to comment.