#!/bin/sh # Author: Athmane Madjoudj # Christoph Galuschka t_Log "Running $0 - curl can access http-host and retrieve index.html." if [ $SKIP_QA_HARNESS -eq 1 ]; then CHECK_FOR="The CentOS Project" URL="http://www.centos.org/" else CHECK_FOR="Index of /srv" URL="http://repo.centos.qa/srv/CentOS/" fi t_Log "Querying ${URL}" curl --location -s ${URL} | grep -q "${CHECK_FOR}" t_CheckExitStatus $?