Update sync-vps-repos.sh to export GIT_SSH_COMMAND and enforce SSH forge remote URLs for deploy key authentication

This commit is contained in:
Hermes Agent committed 2026-12-02 12:08:13 +00:00
1 parent 2c05f8e708
commit f1792478b6
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/run-vps-data-production.sh`
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END -->
+8
View File
@@ -44,6 +44,10 @@ DEFAULT_REPOS_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
export REPOS_ROOT="${REPOS_ROOT:-${DEFAULT_REPOS_ROOT}}"
export LIVE_REPOS="${LIVE_REPOS:-/var/www/hyperstitionstud.io/repos}"
if [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new"
fi
TARGET_REPO="all"
DO_PULL=1
DO_CADDY=1
@@ -111,6 +115,10 @@ if [[ "${DO_PULL}" -eq 1 ]]; then
if [[ "${repo}" == "haiperdohp-jemaytreeah" ]] && git -C "${REPOS_ROOT}/${repo}" remote | grep -qx "downstream"; then
remote_name="downstream"
fi
if [[ "${remote_name}" == "origin" ]]; then
forge_ssh="ssh://git@git.libre.audio:2222/seasharp"
git -C "${REPOS_ROOT}/${repo}" remote set-url origin "${forge_ssh}/${repo}.git" || true
fi
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch}) with autostash rebase..."
prev_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
run_checked "git pull --rebase --autostash ${repo}" git -C "${REPOS_ROOT}/${repo}" pull --rebase --autostash "${remote_name}" "${branch}"