usar el log configurado
This commit is contained in:
parent
46541ea34d
commit
676b3628bb
2 changed files with 2 additions and 2 deletions
|
@ -48,6 +48,6 @@ json="{\"transaction_uuid\":\"$uuid\",\"controller_id\":\"$name\",\"timestamp\":
|
||||||
if echo $json | $json_linter >/dev/null 2>&1 ;then
|
if echo $json | $json_linter >/dev/null 2>&1 ;then
|
||||||
echo $json > $install_dir/stack/$file && rm $install_dir/lock && echo $((counter+1)) > $install_dir/counter && break
|
echo $json > $install_dir/stack/$file && rm $install_dir/lock && echo $((counter+1)) > $install_dir/counter && break
|
||||||
else
|
else
|
||||||
echo "$(date +%Y-%m-%d-%H:%M:%S) - No se pudo obtener información." >> $install_dir/errors.log && sleep 1
|
echo "$(date +%Y-%m-%d-%H:%M:%S) - No se pudo obtener información." >> $log && sleep 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -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 -eq 404 ];then
|
||||||
echo "$(date +%Y-%m-%d-%H:%M:%S) - $url - $test_url" >> $install_dir/errors.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)
|
||||||
[ -z $file ] && continue
|
[ -z $file ] && continue
|
||||||
|
|
Loading…
Reference in a new issue