Fix sup for icap
This commit is contained in:
parent
43912bda99
commit
e6acb9159e
@ -3,8 +3,13 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|||||||
if [ -z "$supgethosts" ] && [ -z "$supicaphost" ]; then
|
if [ -z "$supgethosts" ] && [ -z "$supicaphost" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
error=0
|
error=0
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
date=$(date +%d-%m-%Y_%w)
|
||||||
|
|
||||||
if [ -n "$supicaphost" ]; then
|
if [ -n "$supicaphost" ]; then
|
||||||
c-icap-client -i $supicaphost -p $supicapport -s request > /tmp/test-icap-e2g-orion 2>&1
|
c-icap-client -i $supicaphost -p $supicapport -s request > /tmp/test-icap-e2g-orion 2>&1
|
||||||
grep "200 OK" /tmp/test-icap-e2g-orion >/dev/null
|
grep "200 OK" /tmp/test-icap-e2g-orion >/dev/null
|
||||||
@ -12,13 +17,11 @@ if [ -n "$supicaphost" ]; then
|
|||||||
echo "SUP ICAP: ACCESS ICAP ok $supicaphost"
|
echo "SUP ICAP: ACCESS ICAP ok $supicaphost"
|
||||||
else
|
else
|
||||||
echo "SUP ICAP: ERROR $supicaphost"
|
echo "SUP ICAP: ERROR $supicaphost"
|
||||||
|
error=1
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
date=$(date +%d-%m-%Y_%w)
|
|
||||||
if [ -n "$supgethosts" ]; then
|
if [ -n "$supgethosts" ]; then
|
||||||
for i in ${supgethosts[@]}
|
for i in ${supgethosts[@]}
|
||||||
do
|
do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user