ignore sysctl permission problems (likely in containers)

This commit is contained in:
holger krekel
2026-03-07 21:43:04 +01:00
parent cf2cb57cca
commit 8b6829b906

View File

@@ -141,11 +141,15 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool):
# Skip updating limits if already sufficient
# (enables running in incus containers where sysctl readonly)
continue
# in containers the following can fail see also
# https://docs.pyinfra.com/en/3.x/arguments.html#operation-meta-callbacks
server.sysctl(
name=f"Change {key}",
key=key,
value=65535,
persist=True,
_ignore_errors=True,
_continue_on_error=True,
)
timezone_env = files.line(