journald: remove old logs from disk. (#490)

fix #486
This commit is contained in:
missytake
2025-02-17 00:27:04 +01:00
committed by GitHub
parent 1a35cdc7a9
commit 42bfb9f22f
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,9 @@
- cmdeploy dns: offer alternative DKIM record format for some web interfaces - cmdeploy dns: offer alternative DKIM record format for some web interfaces
([#470](https://github.com/deltachat/chatmail/pull/470)) ([#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 - migration guide: let opendkim own the DKIM keys directory
([#468](https://github.com/deltachat/chatmail/pull/468)) ([#468](https://github.com/deltachat/chatmail/pull/468))

View File

@@ -705,6 +705,11 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None:
enabled=True, enabled=True,
restarted=journald_conf.changed, restarted=journald_conf.changed,
) )
files.directory(
name="Ensure old logs on disk are deleted",
path="/var/log/journal/",
present=False,
)
apt.packages( apt.packages(
name="Ensure cron is installed", name="Ensure cron is installed",