Files
installerscript-sh/index.html
2025-11-11 11:47:15 +01:00

43 lines
1019 B
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Homelab Installer</title>
<style>
body { background:#111; color:#eee; font-family: monospace; padding:40px; }
h1 { color:#6cf; }
pre { background:#222; padding:12px; border-radius:6px; }
a { color:#6cf; }
</style>
</head>
<body>
<h1>Homelab Installer</h1>
<p>Starte den Installer auf deinem Server:</p>
<h3>Mit <b>curl</b>:</h3>
<pre id="cmd-curl"></pre>
<h3>Mit <b>wget</b>:</h3>
<pre id="cmd-wget"></pre>
<p>API JSON Übersicht:
<a id="api-link" href="#">API</a></p>
<script>
let base = window.location.origin;
document.getElementById("cmd-curl").textContent =
`curl -s ${base}/install.sh -o install.sh && chmod +x install.sh && ./install.sh`;
document.getElementById("cmd-wget").textContent =
`wget ${base}/install.sh -O install.sh && chmod +x install.sh && ./install.sh`;
let api = document.getElementById("api-link");
api.href = `${base}/info.php`;
api.textContent = `${base}/info.php`;
</script>
</body>
</html>