fix: remove -f flag from cloud check (Wallarm API returns 404 on root)

This commit is contained in:
admin 2026-08-03 12:14:16 +00:00
parent 112bffb742
commit d28d77661d

View file

@ -48,7 +48,7 @@ def preflight():
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")
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 "⚠️ "
print(f" {m} cloud:{cloud}{host}{' (unreachable, will retry on deploy)' if not reachable else ''}")
return ok