From bb970bf68f8355cda346ec5b65fb5b7c200f2e30 Mon Sep 17 00:00:00 2001 From: Markus Storm Date: Wed, 3 May 2023 20:54:10 +0200 Subject: [PATCH] Update first-boot.bash Fix access to https://www.openhab.org/docs/ --- build-image/first-boot.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-image/first-boot.bash b/build-image/first-boot.bash index 58daad014..6566b8d65 100755 --- a/build-image/first-boot.bash +++ b/build-image/first-boot.bash @@ -84,7 +84,7 @@ if [[ -z $wifi_ssid ]]; then echo -n "$(timestamp) [openHABian] Setting up Ethernet connection... " if grep -qs "up" /sys/class/net/eth0/operstate; then echo "OK"; else echo "FAILED"; fi - if ! running_in_docker && tryUntil "ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs 'HTTP/1.1 200 OK'" 5 1; then + if ! running_in_docker && tryUntil "ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs/ |& grep -qs 'HTTP/[^ ]*[ ]200'" 5 1; then if [[ "$hotspot" == "enable" ]] && ! [[ -x $(command -v comitup) ]]; then echo -n "$(timestamp) [openHABian] Installing comitup hotspot (will reboot after)... " setup_hotspot "install"