systemd: backslashes are no longer allowed in script names
This commit is contained in:
parent
c6340022ba
commit
01130e502a
|
@ -179,8 +179,9 @@ let
|
||||||
];
|
];
|
||||||
|
|
||||||
makeJobScript = name: text:
|
makeJobScript = name: text:
|
||||||
let x = pkgs.writeTextFile { name = "unit-script"; executable = true; destination = "/bin/${shellEscape name}"; inherit text; };
|
let mkScriptName = s: (replaceChars [ "\\" ] [ "-" ] (shellEscape s) );
|
||||||
in "${x}/bin/${shellEscape name}";
|
x = pkgs.writeTextFile { name = "unit-script"; executable = true; destination = "/bin/${mkScriptName name}"; inherit text; };
|
||||||
|
in "${x}/bin/${mkScriptName name}";
|
||||||
|
|
||||||
unitConfig = { name, config, ... }: {
|
unitConfig = { name, config, ... }: {
|
||||||
config = {
|
config = {
|
||||||
|
|
Loading…
Reference in a new issue