mkdir -p because directories exist on domain update
This commit is contained in:
parent
31889d3f9b
commit
56d3425ad8
@ -249,13 +249,13 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
"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
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user