Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -19,7 +19,24 @@ tmp="$(mktemp)"
trap 'rm -f "$tmp"' EXIT
echo "Lade GeoIP-DB: $URL"
if ! curl -fSL "$URL" -o "$tmp"; then
if ! node - "$URL" "$tmp" <<'NODE'
const fs = require("node:fs");
const { pipeline } = require("node:stream/promises");
const { Readable } = require("node:stream");
(async () => {
const [, , url, destination] = process.argv;
const response = await fetch(url, { redirect: "follow", signal: AbortSignal.timeout(30_000) });
if (!response.ok || !response.body) {
throw new Error(`GeoIP download failed with HTTP ${response.status}`);
}
await pipeline(Readable.fromWeb(response.body), fs.createWriteStream(destination, { flags: "w" }));
})().catch((error) => {
console.error(error);
process.exit(1);
});
NODE
then
echo "FEHLER: Download fehlgeschlagen. Ist die Monatsdatei für ${MONTH} schon veröffentlicht?" >&2
echo " Versuche den Vormonat: ./scripts/update-geoip-db.sh JJJJ-MM" >&2
exit 1