HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2014-08-12 545ad6fc16bc7ebd62f48dd044274bd972611048
ProFTP configuration: generate pacs.conf only instead of whole master
configuration file.
1 files modified
1 files added
1 files deleted
129 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/proftpd-conf.vm 90 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/proftpd-pacs-conf.vm 37 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -130,7 +130,7 @@
    }
    private Processor createProftpdConfProc(Hive hive) throws ProcessorException {
        return new VelocityProcessor("/de/hsadmin/mods/pac/proftpd-conf.vm", hive, "/etc/proftpd/proftpd.conf", true);
        return new VelocityProcessor("/de/hsadmin/mods/pac/proftpd-pacs-conf.vm", hive, "/etc/proftpd/pacs.conf", true);
    }
    private Processor createAddUserProc(String pacName, UnixUser unixUser, String password) {
hsarback/src/de/hsadmin/mods/pac/proftpd-conf.vm
File was deleted
hsarback/src/de/hsadmin/mods/pac/proftpd-pacs-conf.vm
New file
@@ -0,0 +1,37 @@
#
# This file is managed by HSAdmin.
# Do not edit manually. Changes will be overwritten.
#
#foreach( $pac in ${hive.pacs} )
<VirtualHost ${pac.curINetAddr.inetAddr}>
        DefaultRoot             ~ ${pac.name}
        ServerName              "${pac.name}.hostsharing.net"
        AllowOverwrite          on
        AllowForeignAddress     on
        <Limit LOGIN>
                Order           allow,deny
                AllowGroup      ${pac.name}
                DenyAll
        </Limit>
        <Anonymous /home/pacs/${pac.name}/ftp>
                User            ${pac.name}
                Group           ${pac.name}
                UserAlias       anonymous ${pac.name}
                UserAlias       ftp ${pac.name}
                DirFakeUser     on ftp
                DirFakeGroup    on ftp
                DirFakeMode     000
                AuthAliasOnly   on
                <Limit WRITE>
                        DenyAll
                </Limit>
        </Anonymous>
</VirtualHost>
#end