opendkim: use su instead of sudo

This commit is contained in:
link2xt
2024-11-09 03:54:15 +00:00
committed by missytake
parent f4fc1a3f93
commit 8ec6e6e985
2 changed files with 5 additions and 2 deletions

View File

@@ -217,8 +217,8 @@ def _configure_opendkim(domain: str, dkim_selector: str = "dkim") -> bool:
commands=[
f"opendkim-genkey -D /etc/dkimkeys -d {domain} -s {dkim_selector}"
],
_sudo=True,
_sudo_user="opendkim",
_use_su_login=True,
_su_user="opendkim",
)
return need_restart