Update auto-fix-qortal.sh

extended time for initial check upon first API failure
This commit is contained in:
crowetic 2025-03-23 06:20:57 -07:00 committed by GitHub
parent 0e34e02c8f
commit 757f0b039a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,8 +105,8 @@ check_qortal() {
core_running=$(curl -s localhost:12391/admin/status) core_running=$(curl -s localhost:12391/admin/status)
if [ -z "$core_running" ]; then if [ -z "$core_running" ]; then
echo "${RED}CORE DOES NOT SEEM TO BE RUNNING, WAITING 1 MINUTE...${NC}\n" echo "${RED}CORE DOES NOT SEEM TO BE RUNNING, WAITING 3 MINUTES...${NC}\n"
sleep 60 sleep 180
fi fi
LOCAL_VERSION=$(curl -s localhost:12391/admin/info | grep -oP '"buildVersion":"qortal-\K[^-]*' | sed 's/-.*//' | tr -d '.') LOCAL_VERSION=$(curl -s localhost:12391/admin/info | grep -oP '"buildVersion":"qortal-\K[^-]*' | sed 's/-.*//' | tr -d '.')