mkdir -p because directories exist on domain update
This commit is contained in:
parent
31889d3f9b
commit
c0e94a6e65
@ -249,13 +249,13 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
|||||||
"chmod g+rx " + homeDir + " && " +
|
"chmod g+rx " + homeDir + " && " +
|
||||||
"mkdir --mode=1550 --parents " + domsDir + " && " +
|
"mkdir --mode=1550 --parents " + domsDir + " && " +
|
||||||
"chown httpd:" + pacName + " " + domsDir + " && " +
|
"chown httpd:" + pacName + " " + domsDir + " && " +
|
||||||
"mkdir --mode=750 " + domainDir + " && " +
|
"mkdir --mode=750 --parents " + domainDir + " && " +
|
||||||
"chown " + userName + ":httpd " + domainDir
|
"chown " + userName + ":httpd " + domainDir
|
||||||
);
|
);
|
||||||
CompoundProcessor domDirsProcessor = new CompoundProcessor(mkDomainDirProzessor);
|
CompoundProcessor domDirsProcessor = new CompoundProcessor(mkDomainDirProzessor);
|
||||||
for (String subDir : subDirs) {
|
for (String subDir : subDirs) {
|
||||||
domDirsProcessor.appendProcessor(new ShellProcessor(
|
domDirsProcessor.appendProcessor(new ShellProcessor(
|
||||||
"mkdir --mode=755 " + domainDir + "/" + subDir + " && " +
|
"mkdir --mode=755 --parents " + domainDir + "/" + subDir + " && " +
|
||||||
"chown " + userName + ":" + pacName + " " + domainDir + "/" + subDir
|
"chown " + userName + ":" + pacName + " " + domainDir + "/" + subDir
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user