fix: run email bootstrap with sudo
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-23 22:47:35 -06:00
parent c3cc96c1ae
commit f312fdcdfc
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ fi
domain="${LAB_EMAIL_DOMAIN:-}"
open_mail="${LAB_EMAIL_OPEN_MAIL_PORTS:-false}"
echo "Preparing Postfix and Dovecot on ${ssh_target} (domain=${domain:-pending}, mail_ports=${open_mail})."
ssh "${ssh_opts[@]}" "${ssh_target}" bash -s -- "${domain}" "${open_mail}" <<'REMOTE'
ssh "${ssh_opts[@]}" "${ssh_target}" sudo bash -s -- "${domain}" "${open_mail}" <<'REMOTE'
set -euo pipefail
domain="${1:-}"
open_mail="${2:-false}"