sourcehut: create logs directory unconditionally

An empty log directory, in case it stays unused, does not hurt anyone.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-11-11 12:53:42 +01:00
parent fc6addb147
commit 641e54bb28
No known key found for this signature in database
GPG Key ID: 73D5E7FDEE3DE49A

View File

@ -807,7 +807,7 @@ in
"chown ${cfg.hg.user}:${cfg.hg.group} /var/log/sourcehut/hgsrht-keys"
]);
serviceConfig = {
LogsDirectory = mkIf (cfg.git.enable || cfg.hg.enable) "sourcehut";
LogsDirectory = "sourcehut";
BindReadOnlyPaths =
# Note that those /usr/bin/* paths are hardcoded in multiple places in *.sr.ht,
# for instance to get the user from the [git.sr.ht::dispatch] settings.