mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix infinite 503
This commit is contained in:
parent
1487919656
commit
0cabde172b
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ CHECK_URL () {
|
||||||
ECHO_FORMAT "Service temporarily unavailable\n" "lyellow" "bold"
|
ECHO_FORMAT "Service temporarily unavailable\n" "lyellow" "bold"
|
||||||
# 3 successive error are allowed
|
# 3 successive error are allowed
|
||||||
http503=$(( http503 + 1 ))
|
http503=$(( http503 + 1 ))
|
||||||
if [ $http503 -eq 3 ]; then
|
if [ $http503 -ge 3 ]; then
|
||||||
# Over 3, it's definitively an error
|
# Over 3, it's definitively an error
|
||||||
curl_error=1
|
curl_error=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue