mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-30 10:35:39 +08:00
daily-backup.sh: connect mastercontainer to nextcloud-aio network
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
ca0af37eaa
commit
b82943046d
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ APACHE_PORT="$(docker inspect nextcloud-aio-apache --format "{{.Config.Env}}" |
|
|||
if [ -z "$APACHE_PORT" ]; then
|
||||
echo "APACHE_PORT is not set which is not expected..."
|
||||
else
|
||||
# Connect mastercontainer to nextcloud-aio network to make sure that nextcloud-aio-apache is reachable
|
||||
# Prevent issues like https://github.com/nextcloud/all-in-one/discussions/5222
|
||||
docker network connect nextcloud-aio nextcloud-aio-mastercontainer &>/dev/null
|
||||
|
||||
# Wait for apache to start
|
||||
while docker ps --format "{{.Names}}" | grep -q "^nextcloud-aio-apache$" && ! nc -z nextcloud-aio-apache "$APACHE_PORT"; do
|
||||
echo "Waiting for apache to become available"
|
||||
sleep 30
|
||||
|
|
Loading…
Add table
Reference in a new issue