fix: remove -f flag from cloud check (Wallarm API returns 404 on root)
This commit is contained in:
parent
112bffb742
commit
d28d77661d
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def preflight():
|
||||||
check(f"cmd:{c}", run_ok(f"which {c}"))
|
check(f"cmd:{c}", run_ok(f"which {c}"))
|
||||||
check("installer", run_ok(f"curl -fsSL -o /dev/null {AIO_URL} 2>/dev/null"), "meganode")
|
check("installer", run_ok(f"curl -fsSL -o /dev/null {AIO_URL} 2>/dev/null"), "meganode")
|
||||||
for cloud, host in (("US", "us1.api.wallarm.com"), ("EU", "api.wallarm.com")):
|
for cloud, host in (("US", "us1.api.wallarm.com"), ("EU", "api.wallarm.com")):
|
||||||
reachable = run_ok(f"curl -fsSL --connect-timeout 5 -o /dev/null https://{host} 2>/dev/null")
|
reachable = run_ok(f"curl -sL --connect-timeout 5 -o /dev/null https://{host} 2>/dev/null")
|
||||||
m = "✅" if reachable else "⚠️ "
|
m = "✅" if reachable else "⚠️ "
|
||||||
print(f" {m} cloud:{cloud} — {host}{' (unreachable, will retry on deploy)' if not reachable else ''}")
|
print(f" {m} cloud:{cloud} — {host}{' (unreachable, will retry on deploy)' if not reachable else ''}")
|
||||||
return ok
|
return ok
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue