From 55bae82808ac07ae806fd431ab16ec819acb54b1 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 18 Oct 2012 16:44:37 +0200 Subject: [PATCH] fix pac-domain migration --- hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index de64e48..e6851d5 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -392,14 +392,14 @@ public class DomainProcessorFactory implements EntityProcessorFactory { } processor.appendProcessor( new ShellProcessor("test -L " + domDir + "/htdocs" + - " && `stat -c '%N' " + domDir + "/htdocs` |sed -e's/^.*`//' -e\"s/'$//\"` = web-ssl " + + " && `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")); processor.appendProcessor( new ShellProcessor("test -L " + domDir + "/htdocs-ssl" + - " && `stat -c '%N' " + domDir + "/htdocs-ssl` |sed -e's/^.*`//' -e\"s/'$//\"` = web " + + " && `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" +