mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
try to speed up initial login by not removing the bridge network from mastercontainer but instead during cron.sh
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
87381bbfa3
commit
e8b85917c0
2 changed files with 7 additions and 1 deletions
|
|
@ -57,6 +57,11 @@ while true; do
|
|||
# Remove dangling images
|
||||
sudo -u www-data docker image prune --force
|
||||
|
||||
# Remove mastercontainer from default bridge network
|
||||
if sudo -u www-data docker inspect nextcloud-aio-mastercontainer --format "{{.NetworkSettings.Networks}}" | grep -q "bridge"; then
|
||||
sudo -u www-data docker network disconnect bridge nextcloud-aio-mastercontainer
|
||||
fi
|
||||
|
||||
# Wait 60s so that the whole loop will not be executed again
|
||||
sleep 60
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue