Skip to content

Commit

Permalink
opendkim: fix \n escaping in files.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Feb 19, 2025
1 parent 4d0f9da commit 51c0539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdeploy/src/cmdeploy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _configure_opendkim(domain: str, dkim_selector: str = "dkim") -> bool:
name="Configure opendkim to restart once a day",
path="/lib/systemd/system/opendkim.service",
text="Restart=on-failure",
replace="Restart=always\nRuntimeMaxSec=1d"
replace="Restart=always\\nRuntimeMaxSec=1d",
)
need_restart |= service_file.changed

Expand Down

0 comments on commit 51c0539

Please # to comment.