Explorar o código

flushing pipe when domain doesn't exist

Serghey Rodin %!s(int64=10) %!d(string=hai) anos
pai
achega
52a22e2f3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/v-add-remote-dns-domain

+ 1 - 1
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