Skip to content

Commit adc81d2

Browse files
committed
opendkim: use su instead of sudo
fix #440
1 parent 5633582 commit adc81d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmdeploy/src/cmdeploy/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def _configure_opendkim(domain: str, dkim_selector: str = "dkim") -> bool:
217217
commands=[
218218
f"opendkim-genkey -D /etc/dkimkeys -d {domain} -s {dkim_selector}"
219219
],
220-
_sudo=True,
221-
_sudo_user="opendkim",
220+
_use_su_login=True,
221+
_su_user="opendkim",
222222
)
223223

224224
return need_restart

0 commit comments

Comments
 (0)