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.

fix(scripts): the agent repo's default branch is master, not main

Juan Denis60124b02965f
diff --git a/scripts/sync-agent-installers.sh b/scripts/sync-agent-installers.sh
index 64369342..3cdd72da 100644
--- a/scripts/sync-agent-installers.sh
+++ b/scripts/sync-agent-installers.sh
@@ -24,7 +24,10 @@ set -uo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
AGENT_REPO="${SERVERKIT_AGENT_REPO:-jhd3197/serverkit-agent}"
-AGENT_REF="${AGENT_REF:-main}"
+# The agent repo's default branch is `master`; this repo's is `main`. Getting
+# that backwards makes the raw.githubusercontent fetch 404, which reads as
+# "cannot reach the canonical copy" rather than "wrong branch name".
+AGENT_REF="${AGENT_REF:-master}"
SOURCE="${1:-}"
INSTALLERS=(install.sh install.ps1)
diff --git a/scripts/test/check-installer-drift.sh b/scripts/test/check-installer-drift.sh
index eba08e1f..032b28e6 100644
--- a/scripts/test/check-installer-drift.sh
+++ b/scripts/test/check-installer-drift.sh
@@ -23,7 +23,10 @@ set -uo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
AGENT_REPO="${SERVERKIT_AGENT_REPO:-jhd3197/serverkit-agent}"
-AGENT_REF="${AGENT_REF:-main}"
+# The agent repo's default branch is `master`; this repo's is `main`. Getting
+# that backwards makes the raw.githubusercontent fetch 404, which reads as
+# "cannot reach the canonical copy" rather than "wrong branch name".
+AGENT_REF="${AGENT_REF:-master}"
SOURCE="${1:-}"
INSTALLERS=(install.sh install.ps1)