summaryrefslogtreecommitdiff
path: root/Propellor/Property/Apt.hs
diff options
context:
space:
mode:
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"]