chgrp httpd for domain admin
This commit is contained in:
parent
75b244caea
commit
6c0a21f45f
@ -194,12 +194,21 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
Pac pac = domUser.getPac();
|
||||
boolean dynamicWeb = pac.isDynamicWeb();
|
||||
String pacName = pac.getName();
|
||||
String domsDir = domUser.getHomedir() + "/doms";
|
||||
String homeDir = domUser.getHomedir();
|
||||
String domsDir = homeDir + "/doms";
|
||||
String userName = domUser.getName();
|
||||
String domainDir = domsDir + "/" + dom.getName();
|
||||
String[] subDirs = dynamicWeb ? DW_STRUCTURE : SW_STRUCTURE;
|
||||
String httpdRights = "";
|
||||
if (pacName != userName) {
|
||||
httpdRights =
|
||||
"chgrp httpd " + homeDir + " && " +
|
||||
"chmod g+rx " + homeDir + " && ";
|
||||
}
|
||||
Processor mkDomainDirProzessor =
|
||||
new ShellProcessor(
|
||||
new ShellProcessor( httpdRights +
|
||||
"chgrp httpd " + homeDir + " && " +
|
||||
"chmod g+rx " + homeDir + " && " +
|
||||
"mkdir --mode=1550 --parents " + domsDir + " && " +
|
||||
"chown httpd:" + pacName + " " + domsDir + " && " +
|
||||
"mkdir --mode=750 " + domainDir + " && " +
|
||||
|
Loading…
Reference in New Issue
Block a user