Arreglos varios #6
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ while :;do
|
||||||
|
|
||||||
ping -c 1 fsf.org > /dev/null 2>&1 || continue
|
ping -c 1 fsf.org > /dev/null 2>&1 || continue
|
||||||
test_url="$(curl -s -X POST -o /dev/null -w "%{http_code}" $url)"
|
test_url="$(curl -s -X POST -o /dev/null -w "%{http_code}" $url)"
|
||||||
if [ $test_url -eq 404 ];then
|
if [ $test_url -ne 200 ];then
|
||||||
echo "$(date +%Y-%m-%d-%H:%M:%S) - $url - $test_url" >> $log && sleep 300 && continue
|
echo "$(date +%Y-%m-%d-%H:%M:%S) - $url - $test_url" >> $log && sleep 300 && continue
|
||||||
fi
|
fi
|
||||||
file=$(get_stack)
|
file=$(get_stack)
|
||||||
|
|
Loading…
Reference in a new issue