From f2277cb5d5371cbe6361e8458e11f14dc21e6d30 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:39:31 +0200 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 5cb65fd8200..4c12123d5fd 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -60,9 +60,9 @@ if bashio::config.has_value 'networkdisks'; then # Does server exists server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")" - if nc -w 2 -z 8.8.8.8 22 2>/dev/null; then + if command -v "nc" &>/dev/null; then nc -w 2 -z "$server" 22 2>/dev/null || \ - bashio::log.warning "Your server $server from $disk isn't reachable, is it correct?" + bashio::log.warning "Your server $server from $disk doesn't seem reachable, is it correct?" fi # Prepare mount point