improved dns-sync algorytm

This commit is contained in:
Serghey Rodin 2013-09-12 11:00:30 +03:00
commit 76e8a7e890
9 changed files with 54 additions and 18 deletions

View file

@ -65,8 +65,12 @@ update_domain_zone
# dns-cluster
if [ ! -z "$DNS_CLUSTER" ]; then
cmd="$BIN/v-add-remote-dns-domain $user $domain"
echo "$cmd" >> $VESTA/data/queue/dns-cluster.pipe
# Check for first sync
dlock=$(grep "domain $user $domain" $VESTA/data/queue/dns-cluster.pipe)
if [ -z "$dlock" ]; then
cmd="$BIN/v-add-remote-dns-domain $user $domain"
echo "$cmd" >> $VESTA/data/queue/dns-cluster.pipe
fi
fi