From 4947511bde30fb4ca3ed4c9488587675000e0cf9 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Thu, 16 Jun 2011 12:17:52 +0200
Subject: [PATCH] fixed #62 : Domain wird aus DNS geloescht

---
 hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
index ce2e137..12a837a 100644
--- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -166,7 +166,7 @@
 	public <T extends AbstractEntity> Processor createDeleteProcessor(EntityManager em, T entity) {
 		Domain dom = (Domain) entity;
 		String domName = dom.getName();
-		ShellProcessor emailAddressRemoveProcessor = new ShellProcessor("for KEY in $(postmap -s /etc/postfix/virtual|grep " + domName + "|cut -f1); do postmap -d $KEY /etc/postfix/virtual; done");
+		ShellProcessor emailAddressRemoveProcessor = new ShellProcessor("for KEY in $(postmap -s /etc/postfix/virtual|grep '@" + domName + "\\s'|cut -f1); do postmap -d $KEY /etc/postfix/virtual; done");
 		ShellProcessor dnsRemoveRemoveProcessor = 
 			new ShellProcessor("grep -v '\"pri." + domName + "\"' /etc/bind/named.pri-zones > /etc/bind/named.pri-zones.tmp" +
 				" && mv /etc/bind/named.pri-zones.tmp /etc/bind/named.pri-zones" +

--
Gitblit v1.9.1