robust dns cluster sync

This commit is contained in:
Serghey Rodin 2013-10-24 00:10:54 +03:00
commit b36b15921c
6 changed files with 37 additions and 29 deletions

View file

@ -96,7 +96,7 @@ done
# Update pipe
pipe="$VESTA/data/queue/dns-cluster.pipe"
str=$(grep -n "$SCRIPT $1 $2$" $pipe | cut -f1 -d: | head -n1)
str=$(grep -n "$SCRIPT $1 $2 $3$" $pipe | cut -f1 -d: | head -n1)
if [ ! -z "$str" ]; then
sed -i "$str d" $pipe
fi