Skip to content

Commit

Permalink
Fix check online to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn committed Feb 28, 2024
1 parent 0001525 commit fa8ca23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant-supervised/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ info "Restarting docker service"
systemctl restart "${SERVICE_DOCKER}"

# Check network connection
while ! ping -c 1 -W 1 ${URL_CHECK_ONLINE}; do
#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
Expand Down

0 comments on commit fa8ca23

Please sign in to comment.