You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
529 B
24 lines
529 B
12 months ago
|
#!/bin/sh
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
# Christoph Galuschka <christoph.galuschka@chello.at>
|
||
|
|
||
|
t_Log "Running $0 - wget can access http-host and download index.html."
|
||
|
FILE=/var/tmp/index.html
|
||
|
|
||
|
|
||
|
if [ $SKIP_QA_HARNESS -eq 1 ]; then
|
||
|
CHECK_FOR="timestamp"
|
||
|
URL="http://mirror.centos.org/"
|
||
|
else
|
||
|
CHECK_FOR="CentOS"
|
||
|
URL="http://repo.centos.qa/srv/CentOS/"
|
||
|
fi
|
||
|
|
||
|
t_Log "Querying ${URL}"
|
||
|
wget -q --output-document=${FILE} ${URL}
|
||
|
grep -q "${CHECK_FOR}" ${FILE}
|
||
|
ret_val=$?
|
||
|
|
||
|
/bin/rm ${FILE}
|
||
|
t_CheckExitStatus $ret_val
|