nixos/couchpotato: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
This commit is contained in:
parent
86fd8c910d
commit
9fc6955abc
|
@ -19,16 +19,11 @@ in
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
preStart = ''
|
|
||||||
mkdir -p /var/lib/couchpotato
|
|
||||||
chown -R couchpotato:couchpotato /var/lib/couchpotato
|
|
||||||
'';
|
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "couchpotato";
|
User = "couchpotato";
|
||||||
Group = "couchpotato";
|
Group = "couchpotato";
|
||||||
PermissionsStartOnly = "true";
|
StateDirectory = "couchpotato";
|
||||||
ExecStart = "${pkgs.couchpotato}/bin/couchpotato";
|
ExecStart = "${pkgs.couchpotato}/bin/couchpotato";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue