count=$(grep -ci SSLCertificateFile ${site_conf}) if [ "${count}" -ge 1 ] then echo "SSL found; generating certificate..." generate-ssl-cert "${host}" else echo "No SSL found; doing nothing" fi