summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2015-05-27 21:15:54 -0400
committerJoey Hess2015-05-27 21:15:54 -0400
commit0c86662b2d98f8f708bb5217e1cedf74b2fbfa04 (patch)
treef67d4e5bdd952443d7ece1f6905c7f3bb488951d /src/Propellor
parentfba62ba36ad94241f47d89de668ec4bb7f2a774e (diff)
propellor spin
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Systemd.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index b19c08bc..c698f780 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -221,7 +221,7 @@ enterScript c@(Container name _ _) = setup <!> teardown
, "chomp $pid;"
, "if (length $pid) {"
, "\tforeach my $var (keys %ENV) {"
- , "\t\tdelete $var unless $var eq 'PATH' || $var eq 'TERM';"
+ , "\t\tdelete $ENV{$var} unless $var eq 'PATH' || $var eq 'TERM';"
, "\t}"
, "\texec('nsenter', '-p', '-u', '-n', '-i', '-m', '-t', $pid, @ARGV);"
, "} else {"