HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2015-11-30 b94f19caba4aad750e0fd8afe055ed73f6775594
nicer bash code
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
@@ -274,7 +274,7 @@
                    + "mkdir -p $PEMS_DIR && "
                    + "cd $PEMS_DIR && "
                    + "( ls _." + domName + ".crt || ( echo \"\" > _." + domName + ".chain && "
                    + "openssl req -x509 -newkey rsa:2048 -keyout _." + domName + ".key -out _." + domName + ".crt -days 1100 -nodes -sha256 -config /tmp/openssl-sna.cnf ) ) &&"
                    + "openssl req -x509 -newkey rsa:2048 -keyout _." + domName + ".key -out _." + domName + ".crt -days 1100 -nodes -sha256 -config /tmp/openssl-sna.cnf ) ) && "
                    + "chmod 400 _." + domName + "*"),
            new ShellProcessor("export PEMS_DIR=/etc/apache2/pems-enabled && "
                    + "mkdir -p $PEMS_DIR && "