Github bot : script beautyshied

This commit is contained in:
github-actions
2023-04-16 00:12:34 +00:00
parent b3c8f1ceee
commit 806b521354
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ if bashio::config.has_value 'networkdisks'; then
server="$(echo "$disk" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+")" 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 1 -c 1 8.8.8.8 >/dev/null; then
ping -w 5 -c 1 "$server" >/dev/null || \ 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.fatal "Your server $server from $disk doesn't ping, is it correct?"; break 2; }
fi fi
# Prepare mount point # Prepare mount point