Skip to content

Commit 52a22e2

Browse files
committed
flushing pipe when domain doesn't exist
1 parent d5371c3 commit 52a22e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-remote-dns-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ remote_dns_health_check
4444
str=$(grep "DOMAIN='$domain'" $USER_DATA/dns.conf 2>/dev/null)
4545
if [ -z "$str" ]; then
4646
pipe="$VESTA/data/queue/dns-cluster.pipe"
47-
queue_str=$(grep -n "$SCRIPT $1 $2 no$" $pipe |cut -f1 -d: |head -n1)
47+
queue_str=$(grep -n "$SCRIPT $1 $2 " $pipe |cut -f1 -d: |head -n1)
4848
if [ ! -z "$queue_str" ]; then
4949
sed -i "$queue_str d" $pipe
5050
fi

0 commit comments

Comments
 (0)