HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2017-06-28 2e61e4c94f909b537fc99491272c268a893160aa
Don't set permissions for key, cert, chain twice.
1 files modified
3 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 3 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -286,8 +286,7 @@
                    + "( ls " + domName + ".crt ||"
                    + " ( ln -s ../pems-generated/" + domName + ".key " + domName + ".key"
                            + " && ln -s ../pems-generated/" + domName + ".crt " + domName + ".crt"
                            + " && ln -s ../pems-generated/" + domName + ".chain " + domName + ".chain ) ) && "
                    + "chmod 400 " + domName + "*"),
                            + " && ln -s ../pems-generated/" + domName + ".chain " + domName + ".chain ) )"),
            new CreateFileProcessor("/de/hsadmin/mods/dom/apache-vhost.vm", templateVars, dom, "/etc/apache2/sites-available/" + domName + ".tmp", "root", "root", "644", true),
            new ShellProcessor(
                    " (diff -q /etc/apache2/sites-available/" + domName + ".tmp /etc/apache2/sites-available/" + domName + " && rm /etc/apache2/sites-available/" + domName + ".tmp ) " +