mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
make the connection check an if argument
This commit is contained in:
parent
c1b6330991
commit
ac76b585ed
10
lib.sh
10
lib.sh
@ -765,8 +765,14 @@ else
|
||||
then
|
||||
systemctl restart systemd-networkd > /dev/null
|
||||
fi
|
||||
# sleep needs to be 30 for some slow networks to restart
|
||||
countdown 'Waiting for network to restart...' 30 && site_200 github.com
|
||||
# Check the connention
|
||||
countdown 'Waiting for network to restart...' 3
|
||||
if ! site_200 github.com
|
||||
then
|
||||
# sleep 40 seconds so that some slow networks have time to restart
|
||||
countdown 'Not online yet, waiting a bit more...' 40
|
||||
site_200 github.com
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user