summaryrefslogtreecommitdiff
path: root/Propellor/Property/Apache.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-13 17:50:44 -0400
committerJoey Hess2014-04-13 17:50:44 -0400
commit90370dc57576ec6d4701acd4b5672eeba269a386 (patch)
tree798ade3f259fdd1eaa1b1a89030cc304028d4254 /Propellor/Property/Apache.hs
parent38cd54a7ee853f13036a02205e1655eac6e7b43a (diff)
stable-backports can't be used :(
Diffstat (limited to 'Propellor/Property/Apache.hs')
-rw-r--r--Propellor/Property/Apache.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Propellor/Property/Apache.hs b/Propellor/Property/Apache.hs
index 81daf9e7..eab87862 100644
--- a/Propellor/Property/Apache.hs
+++ b/Propellor/Property/Apache.hs
@@ -11,10 +11,12 @@ siteEnabled :: HostName -> ConfigFile -> RevertableProperty
siteEnabled hn cf = RevertableProperty enable disable
where
enable = cmdProperty "a2ensite" ["--quiet", hn]
+ `describe` ("apache site enabled " ++ hn)
`requires` siteAvailable hn cf
`requires` installed
`onChange` reloaded
disable = File.notPresent (siteCfg hn)
+ `describe` ("apache site disabled " ++ hn)
`onChange` cmdProperty "a2dissite" ["--quiet", hn]
`requires` installed
`onChange` reloaded
@@ -29,9 +31,11 @@ modEnabled :: String -> RevertableProperty
modEnabled modname = RevertableProperty enable disable
where
enable = cmdProperty "a2enmod" ["--quiet", modname]
+ `describe` ("apache module enabled " ++ modname)
`requires` installed
`onChange` reloaded
disable = cmdProperty "a2dismod" ["--quiet", modname]
+ `describe` ("apache module disabled " ++ modname)
`requires` installed
`onChange` reloaded