From b94f19caba4aad750e0fd8afe055ed73f6775594 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 30 Nov 2015 12:17:01 +0100 Subject: [PATCH] nicer bash code --- hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 796554c..df49dec 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -274,7 +274,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory { + "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 && "