migrate: -w 1 for host check

This commit is contained in:
tschettervictor
2025-05-08 11:53:34 -06:00
committed by GitHub
parent 24e5d5b874
commit f71def0fc2

View File

@@ -127,7 +127,7 @@ validate_host_status() {
info "\nChecking remote host status..."
# Host uptime
if ! nc -z ${_host} ${_port} >/dev/null 2>/dev/null; then
if ! nc -w 1 -z ${_host} ${_port} >/dev/null 2>/dev/null; then
error_exit "[ERROR]: Host appears to be down"
fi