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

@ -43,8 +43,12 @@ update_object_value 'dns' 'DOMAIN' "$domain" '$EXP' "$exp"
# dns-cluster
if [ ! -z "$DNS_CLUSTER" ]; then
cmd="$BIN/v-change-remote-dns-domain-exp $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-change-remote-dns-domain-exp $user $domain $exp"
echo "$cmd" >> $VESTA/data/queue/dns-cluster.pipe
fi
fi