mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
check the DNS resolving on startup
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
92bca4f424
commit
c5973d9875
1 changed files with 10 additions and 0 deletions
|
|
@ -116,6 +116,16 @@ if [ -n "$APACHE_PORT" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check DNS resolution
|
||||||
|
# Prevents issues like https://github.com/nextcloud/all-in-one/discussions/565
|
||||||
|
curl https://nextcloud.com &>/dev/null
|
||||||
|
if [ "$?" = 6 ]; then
|
||||||
|
echo "Could not resolve the host nextcloud.com."
|
||||||
|
echo "Most likely the DNS resolving does not work."
|
||||||
|
echo "You should be able to fix this by adding the '--dns=\"ip.address.of.dns.server\"' option to the docker run command."
|
||||||
|
exit 1
|
||||||
|
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…
Add table
Add a link
Reference in a new issue