diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Unbound.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Propellor/Property/Unbound.hs b/src/Propellor/Property/Unbound.hs index 68703dfd..6edb8b8b 100644 --- a/src/Propellor/Property/Unbound.hs +++ b/src/Propellor/Property/Unbound.hs @@ -54,6 +54,7 @@ config = "/etc/unbound/unbound.conf.d/propellor.conf" cachingDnsServer :: [UnboundSection] -> [UnboundZone] -> [UnboundHost] -> Property NoInfo cachingDnsServer sections zones hosts = config `hasContent` (comment : otherSections ++ serverSection) + `onChange` restarted where comment = "# deployed with propellor, do not modify" serverSection = genSection (fromMaybe ("server", []) $ find ((== "server") . fst) sections) |
