Merge branch 'master' of ssh://hsh04-source@hsh04.hostsharing.net/home/doms/source.hostsharing.net/source/hsadmin.git
This commit is contained in:
commit
e7fe65460a
@ -912,16 +912,17 @@ CREATE TABLE domain_option (
|
|||||||
);
|
);
|
||||||
|
|
||||||
ALTER TABLE ONLY domain_option
|
ALTER TABLE ONLY domain_option
|
||||||
ADD CONSTRAINT domain_option_uniq UNIQUE (domain_option_id);
|
ADD CONSTRAINT pk_domain_option PRIMARY KEY (domain_option_id);
|
||||||
|
|
||||||
CREATE UNIQUE INDEX ON domain_option ( domain_option_name );
|
CREATE UNIQUE INDEX domain_option_name_idx ON domain_option USING btree ( domain_option_name );
|
||||||
|
|
||||||
CREATE TABLE domain__domain_option (
|
CREATE TABLE domain__domain_option (
|
||||||
domain_option_id integer NOT NULL,
|
domain_option_id integer NOT NULL,
|
||||||
domain_id integer NOT NULL
|
domain_id integer NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE UNIQUE INDEX unique_domain__domain_option ON domain__domain_option USING btree (domain_option_id, domain_id);
|
ALTER TABLE ONLY domain__domain_option
|
||||||
|
ADD CONSTRAINT pk_domain__domain_option PRIMARY KEY (domain_option_id, domain_id);
|
||||||
|
|
||||||
ALTER TABLE ONLY domain__domain_option
|
ALTER TABLE ONLY domain__domain_option
|
||||||
ADD CONSTRAINT domain_option_id_fkey FOREIGN KEY (domain_option_id)
|
ADD CONSTRAINT domain_option_id_fkey FOREIGN KEY (domain_option_id)
|
||||||
|
@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -288,7 +288,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
domDirsProcessor.appendProcessor(
|
domDirsProcessor.appendProcessor(
|
||||||
new ShellProcessor("ln -s " + domainDir + " /home/doms/ && " +
|
new ShellProcessor("ln -sf " + domainDir + " /home/doms/ && " +
|
||||||
"chown --no-dereference " + userName + ":httpd /home/doms/" + domName
|
"chown --no-dereference " + userName + ":httpd /home/doms/" + domName
|
||||||
+ " && " + "chown " + userName + ":httpd /home/doms/" + domName + "/")
|
+ " && " + "chown " + userName + ":httpd /home/doms/" + domName + "/")
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user