fix: run email bootstrap with sudo
This commit is contained in:
parent
c3cc96c1ae
commit
f312fdcdfc
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue