diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 4d6fbfe..3a320a3 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -392,18 +392,20 @@ public class DomainProcessorFactory implements EntityProcessorFactory { } processor.appendProcessor( new ShellProcessor("test -L " + domDir + "/htdocs" + - " && $( stat -c '%N' " + domDir + "/htdocs |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web-ssl " + + " && test $( stat -c '%N' " + domDir + "/htdocs |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web-ssl " + " && cd " + domDir + " && rm " + domDir + "/htdocs" + " && ln -sf htdocs-ssl htdocs" + - " && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs")); + " && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs" + + " || echo 'link htdocs not found'")); processor.appendProcessor( new ShellProcessor("test -L " + domDir + "/htdocs-ssl" + - " && $( stat -c '%N' " + domDir + "/htdocs-ssl |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web " + + " && test $( stat -c '%N' " + domDir + "/htdocs-ssl |sed -e\"s/[\\`']//g\" |cut -d ' ' -f 3 ) = web " + " && cd " + domDir + " && rm " + domDir + "/htdocs-ssl" + " && ln -sf htdocs htdocs-ssl" + - " && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs-ssl")); + " && chown -h " + pacName + ":" + pacName + " " + domDir + "/htdocs-ssl" + + " || echo 'link htdocs-ssl not found'")); return processor; }