HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2020-05-28 64126e089e730953c1ff9e6407a5a2e7d23bf93b
remove pri-zones-file reference in pac-module
1 files modified
8 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 8 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -213,14 +213,8 @@
        }
        final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();
        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 = 
            new CompoundProcessor(zonefileTemplateProcessor, zonefileACLProcessor, prizonesFileProcessor);
            new CompoundProcessor(zonefileTemplateProcessor, zonefileACLProcessor);
        return dnsSetupProcessor;
    }