Use standard error_val

This commit is contained in:
Michael Stanclift 2020-06-02 10:02:03 -05:00
parent a9bb52882e
commit 8e8e3dd062

View File

@ -862,16 +862,11 @@ function config_generate {
then then
MESSAGE="Testing Network Connection (PING)" MESSAGE="Testing Network Connection (PING)"
echo_stat echo_stat
ping -c 3 ${INPUT_REMOTE_HOST} ping -c 3 ${INPUT_REMOTE_HOST} 2>/dev/null
if [ "$?" != "127" ] error_validate
then
echo_fail
else
echo_good
fi
else else
MESSAGE="Bypassing Network Testing (PING)" MESSAGE="Bypassing Network Testing (PING)"
echo_info echo_warn
fi fi
MESSAGE="Enter SSH user with SUDO rights on primary Pi-hole server" MESSAGE="Enter SSH user with SUDO rights on primary Pi-hole server"