mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Use standard error_val
This commit is contained in:
parent
a9bb52882e
commit
8e8e3dd062
@ -862,16 +862,11 @@ function config_generate {
|
||||
then
|
||||
MESSAGE="Testing Network Connection (PING)"
|
||||
echo_stat
|
||||
ping -c 3 ${INPUT_REMOTE_HOST}
|
||||
if [ "$?" != "127" ]
|
||||
then
|
||||
echo_fail
|
||||
else
|
||||
echo_good
|
||||
fi
|
||||
ping -c 3 ${INPUT_REMOTE_HOST} 2>/dev/null
|
||||
error_validate
|
||||
else
|
||||
MESSAGE="Bypassing Network Testing (PING)"
|
||||
echo_info
|
||||
echo_warn
|
||||
fi
|
||||
|
||||
MESSAGE="Enter SSH user with SUDO rights on primary Pi-hole server"
|
||||
|
Loading…
Reference in New Issue
Block a user