fix native deploy ssh assumptions
This commit is contained in:
parent
4b8eaae0ee
commit
e70835e9c4
3 changed files with 206 additions and 0 deletions
|
|
@ -754,6 +754,10 @@ set -euo pipefail
|
|||
|
||||
cd ${shellEscape(REMOTE_REPO)}
|
||||
|
||||
if [[ -x "$HOME/.bun/bin/bun" ]]; then
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
fi
|
||||
|
||||
if ! command -v bun >/dev/null 2>&1; then
|
||||
echo "Refusing native rollout: bun is not installed on the server." >&2
|
||||
echo "The current supported VPS path remains --runtime docker." >&2
|
||||
|
|
@ -855,6 +859,10 @@ function remoteNativeRollout(
|
|||
`#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ -x "$HOME/.bun/bin/bun" ]]; then
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
fi
|
||||
|
||||
${remoteGitUpdateScript(mode, remote, branch)}
|
||||
|
||||
cd ${shellEscape(REMOTE_REPO)}
|
||||
|
|
@ -943,6 +951,12 @@ function remoteNativeVerification(scope: DeployScope, fast: boolean): void {
|
|||
`#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd ${shellEscape(REMOTE_REPO)}
|
||||
|
||||
if [[ -x "$HOME/.bun/bin/bun" ]]; then
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
fi
|
||||
|
||||
declare -a units=(${units})
|
||||
for unit in "\${units[@]}"; do
|
||||
${NATIVE_SYSTEMCTL_PREFIX} is-active --quiet "$unit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue