upstart: quote environment vars. John Altobelli hit the case TZ=New York

svn path=/nixos/trunk/; revision=19633
This commit is contained in:
Marc Weber 2010-01-23 22:38:30 +00:00
parent 06aeb7d87f
commit aad3d21ceb

View File

@ -40,7 +40,7 @@ let
${optionalString (job.stopOn != "") "stop on ${job.stopOn}"}
env PATH=${makeSearchPath "bin" upstartPath}:${makeSearchPath "sbin" upstartPath}
${concatMapStrings (n: "env ${n}=${getAttr n job.environment}\n") (attrNames job.environment)}
${concatMapStrings (n: "env ${n}=\"${getAttr n job.environment}\"\n") (attrNames job.environment)}
${optionalString (job.preStart != "") ''
pre-start script