mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-06 21:46:03 +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
|
if [ -z "$APACHE_PORT" ]; then
|
||||||
echo "APACHE_PORT is not set which is not expected..."
|
echo "APACHE_PORT is not set which is not expected..."
|
||||||
else
|
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
|
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"
|
echo "Waiting for apache to become available"
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
Loading…
Add table
Reference in a new issue