systemd: Allow whitespace in environment values

This commit is contained in:
Eelco Dolstra 2013-02-01 13:39:47 +01:00
parent 3c2f45695f
commit 88e4569147

View File

@ -226,7 +226,7 @@ let
Environment=PATH=${def.path}
Environment=LD_LIBRARY_PATH=
${let env = cfg.globalEnvironment // def.environment;
in concatMapStrings (n: "Environment=${n}=${getAttr n env}\n") (attrNames env)}
in concatMapStrings (n: "Environment=\"${n}=${getAttr n env}\"\n") (attrNames env)}
${optionalString (!def.restartIfChanged) "X-RestartIfChanged=false"}
${optionalString (!def.stopIfChanged) "X-StopIfChanged=false"}