mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 14:07:44 +00:00
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.
This commit is contained in:
parent
717ccacc16
commit
733ea72e16
@ -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";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user