HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2014-08-28 1f3c4ca0f07c371f2101c6a3dac729d3f890f952
Generate /etc/sudoers.d/pacs instead of (whole) /etc/sudoers
(configuration).
1 files modified
1 files added
1 files deleted
37 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/sudoers-pacs.vm 8 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/sudoers.vm 27 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -126,7 +126,7 @@
    }
    private Processor createSudouersProc(Hive hive) throws ProcessorException {
        return new VelocityProcessor("/de/hsadmin/mods/pac/sudoers.vm", hive, "/etc/sudoers", true);
        return new VelocityProcessor("/de/hsadmin/mods/pac/sudoers-pacs.vm", hive, "/etc/sudoers.d/pacs", true);
    }
    private Processor createProftpdConfProc(Hive hive) throws ProcessorException {
hsarback/src/de/hsadmin/mods/pac/sudoers-pacs.vm
New file
@@ -0,0 +1,8 @@
#
# This file is managed by HSAdmin.
# Do not edit manually. Changes will be overwritten.
#
#foreach( $pac in ${hive.pacs} )
${pac.name} ALL = (%${pac.name}) NOPASSWD: ALL
#end
hsarback/src/de/hsadmin/mods/pac/sudoers.vm
File was deleted