fix web connectivity test

This commit is contained in:
Trevor Batley 2023-10-03 09:22:29 +11:00
parent ff6f2216cd
commit 46ea99e832

View File

@ -158,7 +158,7 @@ if [[ $KOJI_WEB_FQDN = $KOJI_HUB_FQDN ]] ; then
else else
# deploy remotely to $KOJI_WEB_FQDN # deploy remotely to $KOJI_WEB_FQDN
# check that I can conmnect # check that I can conmnect
if [ ! nc -z $KOJI_WEB_FQDN 22 ] ; then if [ ! $(nc -z $KOJI_WEB_FQDN 22 2>&1 : grep succeeded) ] ; then
echo "I cannot connect to $KOJI_WEB_FQDN! Is it online? " echo "I cannot connect to $KOJI_WEB_FQDN! Is it online? "
echo "Options:" echo "Options:"
echo "- turn on the server" echo "- turn on the server"