solo el estado 200 indica que está todo bien

This commit is contained in:
f 2022-03-03 14:49:39 -03:00
parent 0b77d81c2b
commit 623dccb301

View file

@ -18,7 +18,7 @@ while :;do
ping -c 1 fsf.org > /dev/null 2>&1 || continue
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
fi
file=$(get_stack)