Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

chore(scripts): re-vendor the installers after the usage-path fix

Juan Denisf951f08b7c85
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index 37e3fee4..4f3e219b 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -34,7 +34,9 @@
.\install.ps1 -Token "sk_reg_xxx" -Server "https://your-serverkit.com"
.EXAMPLE
- irm https://your-serverkit.com/install.ps1 | iex; Install-ServerKitAgent -Token "sk_reg_xxx" -Server "https://your-serverkit.com"
+ # The panel serves this at /api/v1/servers/install.ps1, not at the domain
+ # root -- the root of a ServerKit domain is the panel UI.
+ irm https://your-serverkit.com/api/v1/servers/install.ps1 | iex; Install-ServerKitAgent -Token "sk_reg_xxx" -Server "https://your-serverkit.com"
.NOTES
Requires Administrator privileges.
diff --git a/scripts/install.sh b/scripts/install.sh
index 4d804a58..8eb38928 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -16,8 +16,10 @@
# (ServerKit issue #101). ServerKit's nightly CI now fails on any drift.
# ---------------------------------------------------------------------------
#
-# Usage:
-# curl -fsSL https://your-serverkit.com/install.sh -o /tmp/serverkit-agent-install.sh \
+# Usage (the panel serves this at /api/v1/servers/install.sh, not at the domain
+# root -- the root of a ServerKit domain is the panel UI):
+# curl -fsSL https://your-serverkit.com/api/v1/servers/install.sh \
+# -o /tmp/serverkit-agent-install.sh \
# && sudo bash /tmp/serverkit-agent-install.sh --token "TOKEN" --server "URL"
#
# Deliberately not `curl … | sudo bash`: a pipeline reports bash's exit status,
@@ -109,7 +111,8 @@ show_help() {
echo " --help, -h Show this help message"
echo ""
echo "Example:"
- echo " curl -fsSL https://your-serverkit.com/install.sh -o /tmp/serverkit-agent-install.sh \\"
+ echo " curl -fsSL https://your-serverkit.com/api/v1/servers/install.sh \\"
+ echo " -o /tmp/serverkit-agent-install.sh \\"
echo " && sudo bash /tmp/serverkit-agent-install.sh \\"
echo " --token 'sk_reg_xxx' \\"
echo " --server 'https://your-serverkit.com'"