summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
authorJoey Hess2014-12-07 14:49:12 -0400
committerJoey Hess2014-12-07 14:49:12 -0400
commit8c12047b6b6be67e086d60d79a95490598601a7a (patch)
tree3bcddc5669a0806408505f744abc480619a2c2e2 /src/Propellor/Property/Systemd.hs
parent6a906c8a4c63567e08521e2beb774cf4308944b9 (diff)
simplify using makeChange
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
-rw-r--r--src/Propellor/Property/Systemd.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index a2130a21..9cb532e0 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -151,9 +151,8 @@ nspawnService (Container name _ _) cfg = RevertableProperty setup teardown
<$> servicefilecontent
<*> catchDefaultIO "" (readFile servicefile)
- writeservicefile = property servicefile $ liftIO $ do
+ writeservicefile = property servicefile $ makeChange $
viaTmp writeFile servicefile =<< servicefilecontent
- return MadeChange
setupservicefile = check (not <$> goodservicefile) $
-- if it's running, it has the wrong configuration,