Fixes on domain backend

This commit is contained in:
Marc 2014-10-17 13:16:58 +00:00
parent 69d6e41254
commit 34d4b4c808
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ class Bind9MasterDomainBackend(ServiceController):
# These can never be top level domains
return
self.append(textwrap.dedent("""
cat -s <(sed -e 's/^};/};\n/' named.conf.local) | \\
awk -v s="%(name)s" 'BEGIN { RS=""; s="zone \""s"\"" } $0!~s{ print $0"\n" }' \\
cat -s <(sed -e 's/^};/};\\n/' named.conf.local) | \\
awk -v s="%(name)s" 'BEGIN { RS=""; s="zone \\""s"\\"" } $0!~s{ print $0"\\n" }' \\
> %(conf_path)s.tmp""" % context
))
self.append('diff -I"^\s*//" %(conf_path)s.tmp %(conf_path)s || UPDATED=1' % context)