Update auto-fix-qortal.sh
extended time for initial check upon first API failure
This commit is contained in:
parent
0e34e02c8f
commit
757f0b039a
@ -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 '.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user