summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dns
diff options
context:
space:
mode:
Diffstat (limited to 'cfengine/cf.services.dns')
-rw-r--r--cfengine/cf.services.dns8
1 files changed, 5 insertions, 3 deletions
diff --git a/cfengine/cf.services.dns b/cfengine/cf.services.dns
index ce72883..9bced58 100644
--- a/cfengine/cf.services.dns
+++ b/cfengine/cf.services.dns
@@ -30,11 +30,13 @@ editfiles:
# Append " category statistics { null; };"
# EndGroup
#
- BeginGroupIfNoLineMatching '^include[[:blank:]]"/etc/local-COMMON/bind/named_$(fqhost).conf";.*'
+ BeginGroupIfFileExists "/etc/local-COMMON/bind/named_$(fqhost).conf"
+ BeginGroupIfNoLineMatching '^include[[:blank:]]"/etc/local-COMMON/bind/named_$(fqhost).conf";.*'
Append 'include "/etc/local-COMMON/bind/named_$(fqhost).conf";'
- Append '# EDITED BY CFENGINE $(date)'
+ Append '# EDITED BY CFENGINE $(date)'
+ EndGroup
+ DefineClasses "bind_reload"
EndGroup
- DefineClasses "bind_reload"
}
shellcommands: