Allow non pingable

https://github.com/alexbelgium/hassio-addons/issues/929
This commit is contained in:
Alexandre
2023-09-27 14:50:48 +02:00
committed by GitHub
parent 59baddc751
commit a11264ed76

View File

@@ -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 ping -w 1 -c 1 8.8.8.8 >/dev/null; then
if ping -w 5 -c 1 8.8.8.8 >/dev/null; then
ping -w 5 -c 1 "$server" >/dev/null || \
{ bashio::log.fatal "Your server $server from $disk doesn't ping, is it correct?"; break 2; }
bashio::log.warning "Your server $server from $disk doesn't ping, is it correct?"
fi
# Prepare mount point