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:
Viacheslav Bocharov 2024-02-28 18:19:31 +03:00
parent c7848eec49
commit 576b78cf6c
No known key found for this signature in database
GPG key ID: 476858332E6951A5

View file

@ -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