Unverified Commit 641e54bb authored by Christoph Heiss's avatar Christoph Heiss
Browse files

sourcehut: create logs directory unconditionally



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

Signed-off-by: default avatarChristoph Heiss <christoph@c8h4.io>
parent fc6addb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.