propellor spin
This commit is contained in:
parent
0e47d3ed2e
commit
b722083211
|
@ -149,7 +149,9 @@ autoRemove = runApt ["-y", "autoremove"]
|
||||||
unattendedUpgrades :: RevertableProperty
|
unattendedUpgrades :: RevertableProperty
|
||||||
unattendedUpgrades = RevertableProperty enable disable
|
unattendedUpgrades = RevertableProperty enable disable
|
||||||
where
|
where
|
||||||
enable = setup True `before` installed ["cron"]
|
enable = setup True
|
||||||
|
`before` installed ["cron"]
|
||||||
|
`before` serviceRunning "cron"
|
||||||
disable = setup False
|
disable = setup False
|
||||||
|
|
||||||
setup enabled = (if enabled then installed else removed) ["unattended-upgrades"]
|
setup enabled = (if enabled then installed else removed) ["unattended-upgrades"]
|
||||||
|
|
Loading…
Reference in New Issue