summaryrefslogtreecommitdiff
path: root/Propellor/Property/Apt.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-08 18:46:23 -0400
committerJoey Hess2014-04-08 18:46:23 -0400
commitb722083211d3b77911afb2a776115a7af4375265 (patch)
tree6b98cd4c54c657d5ec2c9c3717925fd5e1cb5b16 /Propellor/Property/Apt.hs
parent0e47d3ed2ec899c1c3765030dff2c7120fc8c58f (diff)
propellor spin
Diffstat (limited to 'Propellor/Property/Apt.hs')
-rw-r--r--Propellor/Property/Apt.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Propellor/Property/Apt.hs b/Propellor/Property/Apt.hs
index 87c69dae..ac1d9a12 100644
--- a/Propellor/Property/Apt.hs
+++ b/Propellor/Property/Apt.hs
@@ -149,7 +149,9 @@ autoRemove = runApt ["-y", "autoremove"]
unattendedUpgrades :: RevertableProperty
unattendedUpgrades = RevertableProperty enable disable
where
- enable = setup True `before` installed ["cron"]
+ enable = setup True
+ `before` installed ["cron"]
+ `before` serviceRunning "cron"
disable = setup False
setup enabled = (if enabled then installed else removed) ["unattended-upgrades"]