fr24feed: try to bind /etc/fr24feed in instead

This commit is contained in:
Luke Granger-Brown 2023-05-29 00:15:19 +01:00
parent 1c9b9e9fcd
commit f7f8691649
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ stdenv
, lib
, fetchurl
, buildFHSUserEnv
, buildFHSEnv
, bash
, writeText
}:
@ -23,12 +23,16 @@ let
'';
};
in
buildFHSUserEnv {
buildFHSEnv {
name = "fr24feed";
targetPkgs = pkgs: with pkgs; [
bash
];
extraBwrapArgs = [
"--ro-bind-try /etc/fr24feed /etc/fr24feed"
];
runScript = "${bash}/bin/bash ${
writeText "fr24feed"
''

View file

@ -136,7 +136,7 @@
LogsDirectoryMode = "0755";
ConfigurationDirectory = "fr24feed";
ConfigurationDirectoryMode = "0750";
ExecStart = "${depot.nix.pkgs.fr24feed}/bin/fr24feed --config-file=/host/etc/fr24feed/fr24feed.ini";
ExecStart = "${depot.nix.pkgs.fr24feed}/bin/fr24feed --config-file=/etc/fr24feed/fr24feed.ini";
Restart = "on-failure";
RestartSec = 30;
TimeoutStopSec = 5;