From 576b78cf6c0a4d75bfb574e7a22d675967b86026 Mon Sep 17 00:00:00 2001 From: Viacheslav Bocharov Date: Wed, 28 Feb 2024 18:19:31 +0300 Subject: [PATCH] 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 --- homeassistant-supervised/DEBIAN/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant-supervised/DEBIAN/postinst b/homeassistant-supervised/DEBIAN/postinst index 11f337d..acb1053 100755 --- a/homeassistant-supervised/DEBIAN/postinst +++ b/homeassistant-supervised/DEBIAN/postinst @@ -65,7 +65,7 @@ info "Restarting docker service" systemctl restart "${SERVICE_DOCKER}" # 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..." sleep 2 done