diff options
| author | Joey Hess <joey@kitenet.net> | 2014-04-08 18:46:23 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-04-08 18:46:23 -0400 |
| commit | b722083211d3b77911afb2a776115a7af4375265 (patch) | |
| tree | 6b98cd4c54c657d5ec2c9c3717925fd5e1cb5b16 | |
| parent | 0e47d3ed2ec899c1c3765030dff2c7120fc8c58f (diff) | |
propellor spin
| -rw-r--r-- | Propellor/Property/Apt.hs | 4 |
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"] |
