pac.create

This commit is contained in:
Peter Hormanns 2011-07-07 17:01:40 +00:00
parent 7c35d33ef9
commit 5979115aed

View File

@ -74,10 +74,15 @@ public class PacProcessorFactory implements EntityProcessorFactory {
+ ":" + unixUser.getShell() + "\n");
Processor mkdirsProc = new ShellProcessor("chmod 711 " + unixUser.getHomedir() + " && " +
"su -l " + unixUser.getName() + " -s \"/bin/bash\" -c \"mkdir " +
unixUser.getHomedir() + "/etc " +
unixUser.getHomedir() + "/doms " +
unixUser.getHomedir() + "/etc " +
unixUser.getHomedir() + "/users " +
"\""
unixUser.getHomedir() + "/var " +
"\" && " +
"chown httpd " + unixUser.getHomedir() + "/doms && " +
"chmod 2700 " + unixUser.getHomedir() + "/etc && " +
"chmod 2750 " + unixUser.getHomedir() + "/var && " +
"chmod 2750 " + unixUser.getHomedir() + "/users"
);
try {
InputStream stream = TemplateProcessor.class.getClassLoader().getResourceAsStream("/de/hsadmin/mods/pac/email_new_pac_account.jtpl");