HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-07-07 5979115aed0677060ab3ed3303af0694f14f3014
pac.create
1 files modified
9 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 9 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -74,10 +74,15 @@
                        + ":" + 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");