Unverified Commit 733ea72e authored by amesgen's avatar amesgen Committed by GitHub
Browse files

nixos/rss2email: remove unnecessary cfg file indirection to fix test (#200108)

Previously, the NixOS test often failed as the copied config file is not
overwriteable. In actual setups, the restart interval is much bigger, such that
systemd-tmpfiles will correct the permissions inbetween.
parent 717ccacc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -110,7 +110,6 @@ in {
    in
    {
      preStart = ''
        cp ${conf} /var/rss2email/conf.cfg
        if [ ! -f /var/rss2email/db.json ]; then
          echo '{"version":2,"feeds":[]}' > /var/rss2email/db.json
        fi
@@ -118,7 +117,7 @@ in {
      path = [ pkgs.system-sendmail ];
      serviceConfig = {
        ExecStart =
          "${pkgs.rss2email}/bin/r2e -c /var/rss2email/conf.cfg -d /var/rss2email/db.json run";
          "${pkgs.rss2email}/bin/r2e -c ${conf} -d /var/rss2email/db.json run";
        User = "rss2email";
      };
    };