propellor spin
This commit is contained in:
parent
95ac5163da
commit
f806a55649
|
@ -104,9 +104,10 @@ gitapacheconf hn =
|
||||||
, "</VirtualHost>"
|
, "</VirtualHost>"
|
||||||
]
|
]
|
||||||
|
|
||||||
-- Note: needs debian unstable for new kgb
|
|
||||||
kgbServer :: Property
|
kgbServer :: Property
|
||||||
kgbServer = propertyList "kgb.kitenet.net setup"
|
kgbServer = withOS desc $ \o -> case o of
|
||||||
|
(Just (System (Debian Unstable) _)) ->
|
||||||
|
ensureProperty $ propertyList desc
|
||||||
[ Apt.serviceInstalledRunning "kgb-bot"
|
[ Apt.serviceInstalledRunning "kgb-bot"
|
||||||
, File.hasPrivContent "/etc/kgb-bot/kgb.conf"
|
, File.hasPrivContent "/etc/kgb-bot/kgb.conf"
|
||||||
`onChange` Service.restarted "kgb-bot"
|
`onChange` Service.restarted "kgb-bot"
|
||||||
|
@ -114,4 +115,6 @@ kgbServer = propertyList "kgb.kitenet.net setup"
|
||||||
`describe` "kgb bot enabled"
|
`describe` "kgb bot enabled"
|
||||||
`onChange` Service.running "kgb-bot"
|
`onChange` Service.running "kgb-bot"
|
||||||
]
|
]
|
||||||
|
_ -> error "kgb server needs Debian unstable (for kgb-bot 1.31+)"
|
||||||
|
where
|
||||||
|
desc = "kgb.kitenet.net setup"
|
||||||
|
|
Loading…
Reference in New Issue