diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 799509a4..fba71033 100755 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -140,19 +140,11 @@ chown root:root -R /mnt/docker-aio-config/certs/ # Don't allow access to the AIO interface from the Nextcloud container # Probably more cosmetic than anything but at least an attempt if ! grep -q '# nextcloud-aio-block' /etc/apache2/apache2.conf; then - if ! NETWORK_GATEWAY="$(docker inspect nextcloud-aio-mastercontainer --format "{{.NetworkSettings.Gateway}}")" || [ -z "$NETWORK_GATEWAY" ]; then - echo "Could not get the gateway of the mastercontainer." - fi cat << APACHE_CONF >> /etc/apache2/apache2.conf # nextcloud-aio-block-start order allow,deny deny from nextcloud-aio-nextcloud.nextcloud-aio -APACHE_CONF - if [ -n "$NETWORK_GATEWAY" ]; then - echo "deny from $NETWORK_GATEWAY" >> /etc/apache2/apache2.conf - fi - cat << APACHE_CONF >> /etc/apache2/apache2.conf allow from all # nextcloud-aio-block-end