From 0c56bea049f521a98fee45a985c0b502995d4325 Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 16 Feb 2025 22:37:21 +0100 Subject: [PATCH 1/2] journald: remove old logs from disk. fix #486 --- cmdeploy/src/cmdeploy/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index f89f169fe..783a54051 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -705,6 +705,11 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None: enabled=True, restarted=journald_conf.changed, ) + files.directory( + name="Ensure old logs on disk are deleted", + path="/var/log/journal/", + present=False, + ) apt.packages( name="Ensure cron is installed", From ba28609f9d0bd8583faaaa4ae40bd80188cd300d Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 16 Feb 2025 22:38:33 +0100 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 180ed7526..d412362af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - cmdeploy dns: offer alternative DKIM record format for some web interfaces ([#470](https://github.com/deltachat/chatmail/pull/470)) +- journald: remove old logs from disk + ([#490](https://github.com/deltachat/chatmail/pull/490)) + - migration guide: let opendkim own the DKIM keys directory ([#468](https://github.com/deltachat/chatmail/pull/468))