refactor(map): remove access gate
This commit is contained in:
@@ -40,7 +40,7 @@ systemctl restart "$service"
|
||||
for _ in $(seq 1 30); do
|
||||
if systemctl is-active --quiet "$service" && curl -fsS "$base_url/api/health" >/dev/null; then
|
||||
curl -fsS "$base_url/" | grep -q 'id="dashboardTitle"'
|
||||
curl -fsS "$base_url/api/public/stations" | python3 -c 'import json,sys; d=json.load(sys.stdin); assert d["status"]=="ok" and d["summary"]["totalStations"]>400'
|
||||
curl -fsS "$base_url/api/dashboard" | python3 -c 'import json,sys; d=json.load(sys.stdin); assert d["status"]=="ok" and d["summary"]["totalStations"]>400 and d["summary"]["totalVehicles"]>1000'
|
||||
printf 'vehicle_map_release_install=ok release=%s\n' "$release_id"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user