fr24feed: try to bind /etc/fr24feed in instead
This commit is contained in:
parent
1c9b9e9fcd
commit
f7f8691649
2 changed files with 7 additions and 3 deletions
|
@ -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"
|
||||
''
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue