nextcloud.yml aktualisiert

This commit is contained in:
olli 2023-08-23 14:03:07 +02:00
parent 45b4498e81
commit 16e7bad25b

View File

@ -294,6 +294,15 @@
until wget nextcloud.{{inventory_hostname}} -O - | grep -q Login until wget nextcloud.{{inventory_hostname}} -O - | grep -q Login
do do
echo "Waiting for Login screen..." echo "Waiting for Login screen..."
# restart traefik on Problems with ACME/letsencrypt
if [ -f /home/docker/traefik/docker-compose.yml ]
then
if docker compose -f /home/docker/traefik/docker-compose.yml logs | egrep -q "nextcloud.{{inventory_hostname}}-+error.+acme-challenge"
then
docker compose -f /home/docker/traefik/docker-compose.yml down
docker compose -f /home/docker/traefik/docker-compose.yml up -d
fi
fi
sleep 10 sleep 10
done done