From 52a22e2f3a60f0529429a17882abe779d2fbb92b Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 3 Nov 2015 14:20:36 +0200 Subject: [PATCH] flushing pipe when domain doesn't exist --- bin/v-add-remote-dns-domain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-add-remote-dns-domain b/bin/v-add-remote-dns-domain index e84a0e3d..758a9ebe 100755 --- a/bin/v-add-remote-dns-domain +++ b/bin/v-add-remote-dns-domain @@ -44,7 +44,7 @@ remote_dns_health_check str=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf 2>/dev/null) if [ -z "$str" ]; then pipe="$VESTA/data/queue/dns-cluster.pipe" - queue_str=$(grep -n "$SCRIPT $1 $2 no$" $pipe |cut -f1 -d: |head -n1) + queue_str=$(grep -n "$SCRIPT $1 $2 " $pipe |cut -f1 -d: |head -n1) if [ ! -z "$queue_str" ]; then sed -i "$queue_str d" $pipe fi