HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2017-06-29 f8bec13c6e4fa5ba2fb671ea6ee947688b3d8eab
create selfsigned cert if letsencrypt is switched off
1 files modified
2 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 2 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -276,7 +276,9 @@
        ifOption(templateVars, query, "multiviews", "+MultiViews", "-MultiViews");
        ifOption(templateVars, query, "htdocsfallback", Boolean.TRUE, Boolean.FALSE);
        ifOption(templateVars, query, "letsencrypt", Boolean.TRUE, Boolean.FALSE);
        final boolean isSetLetsencryptOption = templateVars.get("letsencrypt").equals(Boolean.TRUE);
        final Processor domSetupProcessor = new CompoundProcessor(
            isSetLetsencryptOption ? new NullProcessor() : new ShellProcessor("rm -f /etc/apache2/pems-generated/" + domName + ".crt"),
            new ShellProcessor("export PEMS_DIR=/etc/apache2/pems-generated && "
                    + "mkdir -p $PEMS_DIR && "
                    + "cd $PEMS_DIR && "