HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-10-23 144723322583f7885149ffda94a9a86fe4408a82
move pac-domain-data to temp dir, salt-call
1 files modified
5 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 5 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -365,7 +365,10 @@
                        " && rm -f /etc/apache2/pems-generated/" + domname + ".crt" +
                        " && rm -f /etc/apache2/pems-generated/" + domname + ".key" +
                        " && rm -f /etc/apache2/pems-generated/" + domname + ".chain" +
                        " && chown -R " + username + ":" + username + " " + homedir + "/doms/" + domname +
                        " && mkdir " + homedir + "/doms.bak" +
                        " && mv " + homedir + "/doms/" + domname + " "  + homedir + "/doms.bak/" +
                        " && chown -R " + username + ":" + username + " " + homedir + "/doms.bak" +
                        " && salt-call state.sls pacs " +
                        " && invoke-rc.d apache2 reload >/dev/null 2>&1");
        }
        return