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
4
utils.sh
4
utils.sh
|
@ -59,7 +59,7 @@ wait_container()
|
||||||
|
|
||||||
# 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" -- /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
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -188,4 +188,4 @@ update_image() {
|
||||||
lxc stop "$image_to_update-tmp"
|
lxc stop "$image_to_update-tmp"
|
||||||
|
|
||||||
lxc delete "$image_to_update-tmp"
|
lxc delete "$image_to_update-tmp"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue