HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2020-05-27 cdc84a53e1c059e174cb0c5b63fad90745012e64
fix dns changed on domain delete
1 files modified
8 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 8 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -113,10 +113,8 @@
    }
    private ShellProcessor createHiveDNSRemoveProcessor(String domName) {
        return new ShellProcessor("grep -v '\"pri." + domName + "\"' /etc/bind/named.pri-zones > /etc/bind/named.pri-zones.tmp" +
            " && mv /etc/bind/named.pri-zones.tmp /etc/bind/named.pri-zones" +
            " && rm -f /etc/bind/pri." + domName +
            " && invoke-rc.d bind9 reload");
        return new ShellProcessor("rm -f /etc/bind/pri." + domName +
            " && salt-call state.sls pacs");
    }
    private Processor createMailinSetupProcessor(EntityManager em, Domain dom, Pac pac) throws ProcessorException {
@@ -323,7 +321,7 @@
                        " && mkdir " + homedir + "/doms.bak" +
                        " && mv " + homedir + "/doms/" + domname + " "  + homedir + "/doms.bak/" +
                        " && chown -R " + username + ":" + username + " " + homedir + "/doms.bak" +
                        " && salt-call state.sls pacs " +
                        // " && salt-call state.sls pacs " +
                        " && invoke-rc.d apache2 reload >/dev/null 2>&1");
        }
        return