fix: force bash for remote kubeadm commands
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 18s

This commit is contained in:
2026-02-28 21:06:26 +00:00
parent cf98bdf229
commit 3b5d04dda2
2 changed files with 7 additions and 2 deletions

View File

@@ -79,7 +79,9 @@ populate_nodes() {
remote() {
local host_ip="$1"
local cmd="$2"
ssh $SSH_OPTS "$ACTIVE_SSH_USER@$host_ip" "$cmd"
local quoted_cmd
quoted_cmd="$(printf '%q' "$cmd")"
ssh $SSH_OPTS "$ACTIVE_SSH_USER@$host_ip" "bash -lc $quoted_cmd"
}
detect_ssh_user() {