Produkterkennung fuer PVE, PBS und PMG, JSON-Erzeugung ohne jq, Retry mit Backoff, Nachsenden aus dem Spool, Update und Uninstall. Das Dashboard liefert install.sh und agent.sh mit eingesetzter Adresse aus. 38 Tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
10 lines
386 B
TypeScript
10 lines
386 B
TypeScript
import { basisUrl, skriptAntwort, skriptLaden } from "@/server/agent/skripte";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
/** Installationsskript für den One-Liner `curl -fsSL <url>/install.sh | bash -s -- --token …`. */
|
|
export async function GET(request: Request) {
|
|
const inhalt = await skriptLaden("install.sh", basisUrl(request));
|
|
return skriptAntwort(inhalt, "install.sh");
|
|
}
|