chequear si hay un lock primero
This commit is contained in:
parent
8df59231a5
commit
303e35b075
1 changed files with 2 additions and 1 deletions
|
@ -13,12 +13,13 @@ for filename in $install_dir/stack/*;do
|
||||||
done
|
done
|
||||||
|
|
||||||
while :;do
|
while :;do
|
||||||
|
[ -f $install_dir/lock ] && continue
|
||||||
|
|
||||||
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" >> $install_dir/errors.log && sleep 300 && continue
|
||||||
fi
|
fi
|
||||||
[ -f $install_dir/lock ] && continue
|
|
||||||
file=$(get_stack)
|
file=$(get_stack)
|
||||||
[ -z $file ] && continue
|
[ -z $file ] && continue
|
||||||
local_transaction_uuid=$(jq -r '."transaction_uuid"' $stack/$file)
|
local_transaction_uuid=$(jq -r '."transaction_uuid"' $stack/$file)
|
||||||
|
|
Loading…
Reference in a new issue