Fix check online in DEBIAN/postinst from ping to curl
In some virtual machines ping sockets may be disabled, but curl works good. Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
This commit is contained in:
parent
c7848eec49
commit
576b78cf6c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ info "Restarting docker service"
|
||||||
systemctl restart "${SERVICE_DOCKER}"
|
systemctl restart "${SERVICE_DOCKER}"
|
||||||
|
|
||||||
# Check network connection
|
# Check network connection
|
||||||
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
|
while ! curl -q ${URL_CHECK_ONLINE} >/dev/null 2>&1 ; do
|
||||||
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
info "Waiting for ${URL_CHECK_ONLINE} - network interface might be down..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue