mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
Use getent instead of ping
This commit is contained in:
parent
be94a5cc10
commit
29d69e1a94
1 changed files with 2 additions and 2 deletions
2
utils.sh
2
utils.sh
|
@ -59,7 +59,7 @@ wait_container()
|
|||
|
||||
# Wait for container to access the internet
|
||||
for j in $(seq 1 10); do
|
||||
if lxc exec "$1" -- /bin/bash -c "ping -q -c 2 security.debian.org" >/dev/null 2>/dev/null; then
|
||||
if lxc exec "$1" -- /bin/bash -c "getent hosts debian.org" >/dev/null 2>/dev/null; then
|
||||
break
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue