mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
ignore sysctl permission problems (likely in containers)
This commit is contained in:
@@ -141,11 +141,15 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool):
|
|||||||
# Skip updating limits if already sufficient
|
# Skip updating limits if already sufficient
|
||||||
# (enables running in incus containers where sysctl readonly)
|
# (enables running in incus containers where sysctl readonly)
|
||||||
continue
|
continue
|
||||||
|
# in containers the following can fail see also
|
||||||
|
# https://docs.pyinfra.com/en/3.x/arguments.html#operation-meta-callbacks
|
||||||
server.sysctl(
|
server.sysctl(
|
||||||
name=f"Change {key}",
|
name=f"Change {key}",
|
||||||
key=key,
|
key=key,
|
||||||
value=65535,
|
value=65535,
|
||||||
persist=True,
|
persist=True,
|
||||||
|
_ignore_errors=True,
|
||||||
|
_continue_on_error=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
timezone_env = files.line(
|
timezone_env = files.line(
|
||||||
|
|||||||
Reference in New Issue
Block a user