remove pri-zones-file reference in pac-module
This commit is contained in:
parent
ceae773f49
commit
64126e089e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user