From 303e35b07571fd86d94c003a8f25548c56c72f41 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 3 Mar 2022 14:29:58 -0300 Subject: [PATCH] chequear si hay un lock primero --- register.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/register.sh b/register.sh index 66c93e5..4fbe58c 100755 --- a/register.sh +++ b/register.sh @@ -13,12 +13,13 @@ for filename in $install_dir/stack/*;do done while :;do + [ -f $install_dir/lock ] && continue + 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 echo "$(date +%Y-%m-%d-%H:%M:%S) - $url - $test_url" >> $install_dir/errors.log && sleep 300 && continue fi - [ -f $install_dir/lock ] && continue file=$(get_stack) [ -z $file ] && continue local_transaction_uuid=$(jq -r '."transaction_uuid"' $stack/$file)