rpi4: don't set PATH using shell exports
what the actual fuck was i cooking
This commit is contained in:
parent
8187c8a77f
commit
d9dad28acf
@ -14,16 +14,11 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.gallery-dl = {
|
systemd.services.gallery-dl = {
|
||||||
script = ''
|
environment.PATH = with pkgs; makeBinpath [ bash coreutils findutils gallery-dl ];
|
||||||
PATH=${with pkgs; lib.escapeShellArg (lib.makeBinPath [ bash coreutils findutils gallery-dl ])}
|
serviceConfig = {
|
||||||
export PATH
|
|
||||||
|
|
||||||
# none of your fucking business
|
# none of your fucking business
|
||||||
# TODO move this into an agenix secret probably
|
# TODO move this into an agenix secret probably
|
||||||
exec /srv/gallery-dl.sh
|
ExecStart = "/srv/gallery-dl.sh";
|
||||||
'';
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "nullbite";
|
User = "nullbite";
|
||||||
};
|
};
|
||||||
@ -37,13 +32,10 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.gallery-dl-dedup = {
|
systemd.services.gallery-dl-dedup = {
|
||||||
script = ''
|
environment.PATH = with pkgs; makeBinpath [ bash coreutils rmlint ];
|
||||||
PATH=${with pkgs; lib.escapeShellArg (lib.makeBinPath [ coreutils rmlint ])}
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
exec /srv/gallery-dl-dedup.sh
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
# likewise
|
||||||
|
ExecStart = "/srv/gallery-dl-dedup.sh";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "nullbite";
|
User = "nullbite";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user