remove pri-zones-file reference in pac-module

This commit is contained in:
Peter Hormanns 2020-05-28 19:52:24 +02:00
parent ceae773f49
commit 64126e089e

View File

@ -213,14 +213,8 @@ public class PacProcessorFactory implements EntityProcessorFactory {
} }
final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>(); final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();
namedZonesTemplateVars.put("domains", domsNames); namedZonesTemplateVars.put("domains", domsNames);
final Processor prizonesFileProcessor = new CompoundProcessor(
new VelocityProcessor("/de/hsadmin/mods/dom/named-pri-zones.vm",
namedZonesTemplateVars, "/etc/bind/named.pri-zones.tmp", true),
new ShellProcessor(" ( diff -q /etc/bind/named.pri-zones.tmp /etc/bind/named.pri-zones && rm /etc/bind/named.pri-zones.tmp ) " +
"|| ( mv /etc/bind/named.pri-zones.tmp /etc/bind/named.pri-zones && invoke-rc.d bind9 reload )")
);
final Processor dnsSetupProcessor = final Processor dnsSetupProcessor =
new CompoundProcessor(zonefileTemplateProcessor, zonefileACLProcessor, prizonesFileProcessor); new CompoundProcessor(zonefileTemplateProcessor, zonefileACLProcessor);
return dnsSetupProcessor; return dnsSetupProcessor;
} }