fix: SAC-first ssh-monitor update (UPDATE_VIA_SAC, bootstrap --deploy)
Pass UPDATE_VIA_SAC to the remote updater and run bootstrap with --deploy so Linux hosts need only the SAC update button after initial config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -433,7 +433,7 @@ def _ssh_monitor_update_invoke_command(
|
|||||||
safe_repo = _shell_single_quote(repo_url.strip())
|
safe_repo = _shell_single_quote(repo_url.strip())
|
||||||
safe_branch = _shell_single_quote((git_branch or "main").strip() or "main")
|
safe_branch = _shell_single_quote((git_branch or "main").strip() or "main")
|
||||||
preflight = _ssh_monitor_preflight_git_remote(repo_url)
|
preflight = _ssh_monitor_preflight_git_remote(repo_url)
|
||||||
return f"{preflight}; REPO_URL={safe_repo} GIT_BRANCH={safe_branch} {SSH_MONITOR_UPDATE_SCRIPT}"
|
return f"{preflight}; UPDATE_VIA_SAC=1 REPO_URL={safe_repo} GIT_BRANCH={safe_branch} {SSH_MONITOR_UPDATE_SCRIPT}"
|
||||||
|
|
||||||
|
|
||||||
def _ssh_monitor_bootstrap_command(repo_url: str, *, git_branch: str = "main") -> str:
|
def _ssh_monitor_bootstrap_command(repo_url: str, *, git_branch: str = "main") -> str:
|
||||||
@@ -449,7 +449,7 @@ def _ssh_monitor_bootstrap_command(repo_url: str, *, git_branch: str = "main") -
|
|||||||
f'mkdir -p "$UPDATE_DIR" && cd "$UPDATE_DIR" && '
|
f'mkdir -p "$UPDATE_DIR" && cd "$UPDATE_DIR" && '
|
||||||
f'([ -d "$SCRIPT_NAME" ] || git clone -b "$GIT_BRANCH" "$REPO_URL" "$SCRIPT_NAME") && '
|
f'([ -d "$SCRIPT_NAME" ] || git clone -b "$GIT_BRANCH" "$REPO_URL" "$SCRIPT_NAME") && '
|
||||||
f'cp "$UPDATE_DIR/$SCRIPT_NAME/update_ssh_monitor.sh" "$INSTALL" && '
|
f'cp "$UPDATE_DIR/$SCRIPT_NAME/update_ssh_monitor.sh" "$INSTALL" && '
|
||||||
f'chmod 750 "$INSTALL" && REPO_URL="$REPO_URL" GIT_BRANCH="$GIT_BRANCH" "$INSTALL"'
|
f'chmod 750 "$INSTALL" && UPDATE_VIA_SAC=1 REPO_URL="$REPO_URL" GIT_BRANCH="$GIT_BRANCH" "$INSTALL" --deploy'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user