HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-09-20 56d3425ad86b03d8a10963bf4afb688c903487d6
mkdir -p because directories exist on domain update
1 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -249,13 +249,13 @@
                    "chmod g+rx " + homeDir + " && " +
                    "mkdir --mode=1550 --parents " + domsDir + " && " +
                    "chown httpd:" + pacName + " " + domsDir + " && " +
                    "mkdir --mode=750 " + domainDir + " && " +
                    "mkdir --mode=750 --parents " + domainDir + " && " +
                    "chown " + userName + ":httpd " + domainDir 
                    );
        CompoundProcessor domDirsProcessor = new CompoundProcessor(mkDomainDirProzessor);
        for (String subDir : subDirs) {
            domDirsProcessor.appendProcessor(new ShellProcessor(
                    "mkdir --mode=755 " + domainDir + "/" + subDir + " && " +
                    "mkdir --mode=755 --parents " + domainDir + "/" + subDir + " && " +
                    "chown " + userName + ":" + pacName +  " " + domainDir + "/" + subDir
                ));
        }