Fix issue with curl hanging forever

This commit is contained in:
Alexandre Aubin 2023-02-03 02:01:20 +01:00
parent 67a628ad6e
commit 9fcc476cf3

View file

@ -178,7 +178,7 @@ _LXC_START_AND_WAIT() {
# Wait for container to access the internet # Wait for container to access the internet
for j in $(seq 1 10); do for j in $(seq 1 10); do
if lxc exec "$1" -- curl -s http://wikipedia.org > /dev/null 2>/dev/null; then if lxc exec "$1" -- timeout 10 curl -s http://wikipedia.org > /dev/null 2>/dev/null; then
break break
fi fi