diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 7adeaa8..5416d11 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -275,13 +275,13 @@ public class DomainProcessorFactory implements EntityProcessorFactory { String[] sourceDirs = new String[] { "web", "web-ssl", "cgi", "cgi-ssl", "fastcgi", "fastcgi-ssl" } ; String[] targetDirs = new String[] { "htdocs", "htdocs-ssl", "cgi", "cgi-ssl", "fastcgi", "fastcgi-ssl" } ; CompoundProcessor processor = new CompoundProcessor( - new ShellProcessor("rm -rf " + pacDir + "/subs " + pacDir + "/htdocs/.htaccess " - + pacDir + "/subs-ssl " + pacDir + "/htdocs-ssl/.htaccess ")); + new ShellProcessor("rm -rf " + domDir + "/subs " + domDir + "/htdocs/.htaccess " + + domDir + "/subs-ssl " + domDir + "/htdocs-ssl/.htaccess ")); for (int idx = 0; idx < sourceDirs.length; idx++) { processor.appendProcessor( new ShellProcessor("shopt dotglob && ls " + pacDir + "/" + sourceDirs[idx] + " >/dev/null 2>&1" + - " && mv " + domDir + "/" + sourceDirs[idx] + "/*" + targetDirs[idx] + "/ " + - " && rmdir " + domDir + "/" + sourceDirs[idx])); + " && mv " + pacDir + "/" + sourceDirs[idx] + "/* " + domDir + "/" + targetDirs[idx] + "/ " + + " && rmdir " + pacDir + "/" + sourceDirs[idx])); } return processor; }