Update sup
This commit is contained in:
parent
eea0b60760
commit
b6fd188d8a
@ -14,19 +14,21 @@ if [ -n "$supicaphost" ]; then
|
||||
grep "200 OK" /tmp/test-icap-e2g-orion >/dev/null
|
||||
if [ $? = 0 ];then
|
||||
echo "SUP ICAP: ACCESS ICAP ok $supicaphost"
|
||||
error=0
|
||||
else
|
||||
echo "SUP ICAP: ERROR $supicaphost"
|
||||
error=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$supgethosts" ]; then
|
||||
if [ -n "$supgethosts" ] && [ "error" == 0 ]; then
|
||||
for i in ${supgethosts[@]}
|
||||
do
|
||||
echo "CHECK: $i"
|
||||
curl -s -o /dev/null --connect-timeout 5 -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/96.0" $i
|
||||
if [ $? = 0 ];then
|
||||
echo "SUP: ACCESS ok $i"
|
||||
error=0
|
||||
break
|
||||
else
|
||||
echo "SUP: ERROR $i"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user