fix get-zonefile command

This commit is contained in:
Peter Hormanns 2020-05-06 16:55:34 +02:00
parent d6bf31088b
commit d2e57c9752

View File

@ -122,7 +122,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
// final Processor zonefileTemplateProcessor =
// new VelocityProcessor("/de/hsadmin/mods/dom/zonefile.vm", zonefileTemplateVars, dom, zonefileTargetPath, false);
final Processor getZonefileProcessor = new ShellProcessor("echo \"{DEFAULT_ZONEFILE}\" | /usr/local/sbin/gen-zonefile > " + zonefileTargetPath);
final Processor getZonefileProcessor = new ShellProcessor("echo \"{DEFAULT_ZONEFILE}\" | /usr/local/sbin/gen-zonefile " + domName + " > " + zonefileTargetPath);
final Processor zonefileACLProcessor =
new ShellProcessor("chown root:bind " + zonefileTargetPath + " && chmod 644 " + zonefileTargetPath);