HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-05-31 ce55f33d79d85e2a3b0b095208de6d3407764899
make domain.delete more robust
1 files modified
6 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 6 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -312,9 +312,9 @@
        int level = domName.split("\\.").length;
        String linkPrefix = Integer.toString(100 - level);
        Processor vhostDelProcessor = 
            new ShellProcessor("rm /home/doms/" + domName +
                " && rm /etc/apache2/sites-enabled/" + linkPrefix + "-" + domName +
                " && rm /etc/apache2/sites-available/" + domName +
            new ShellProcessor("rm -f /home/doms/" + domName +
                " && rm -f /etc/apache2/sites-enabled/" + linkPrefix + "-" + domName +
                " && rm -f /etc/apache2/sites-available/" + domName +
                " && rm -rf " + dom.getUser().getHomedir() + "/doms/" + domName +
                " && invoke-rc.d apache2 reload >/dev/null 2>&1");
        return vhostDelProcessor;