From aad3d21ceb1d052de873b60685296f0fba74b356 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sat, 23 Jan 2010 22:38:30 +0000 Subject: [PATCH] upstart: quote environment vars. John Altobelli hit the case TZ=New York svn path=/nixos/trunk/; revision=19633 --- modules/system/upstart/upstart.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/upstart/upstart.nix b/modules/system/upstart/upstart.nix index f7c9eaaa6ef..c4897d1259d 100644 --- a/modules/system/upstart/upstart.nix +++ b/modules/system/upstart/upstart.nix @@ -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