From 9493c780f4a079308c8d0f4861e56c63727821f5 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Tue, 18 Jun 2019 19:20:02 +0200
Subject: [PATCH] fix zonefile

---
 hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java |    1 +
 hsarback/src/de/hsadmin/mods/pac/pac-zonefile.vm          |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
index 56c60b8..95f00a3 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -141,6 +141,7 @@
 		final Map<String, Object> zonefileTemplateVars = new HashMap<String, Object>();
 		zonefileTemplateVars.put("sio", Long.toString(System.currentTimeMillis()/1000L));
 		zonefileTemplateVars.put("pac", pac.getName()); 
+		zonefileTemplateVars.put("hive", pac.getHiveName()); 
 		zonefileTemplateVars.put("inet4Addr", pac.getCurINetAddr().getInet4Addr()); 
 		try {
 			zonefileTemplateVars.put("inet6Addr", pac.getCurINetAddr().getInet6Addr());
diff --git a/hsarback/src/de/hsadmin/mods/pac/pac-zonefile.vm b/hsarback/src/de/hsadmin/mods/pac/pac-zonefile.vm
index d7d5386..3c0d074 100644
--- a/hsarback/src/de/hsadmin/mods/pac/pac-zonefile.vm
+++ b/hsarback/src/de/hsadmin/mods/pac/pac-zonefile.vm
@@ -1,5 +1,5 @@
 $TTL 6H
-${pac.name}.hostsharing.net. IN SOA ${hive}.hostsharing.net. hostmaster.hostsharing.net. (
+${pac}.hostsharing.net. IN SOA ${hive}.hostsharing.net. hostmaster.hostsharing.net. (
         ${sio}  ; serial secs since Jan 1 1970
         6H    ; refresh (>=10000)
         1H    ; retry (>=1800)

--
Gitblit v1.9.0-SNAPSHOT