dns cluster support

This commit is contained in:
Serghey Rodin 2013-05-28 16:09:07 +03:00
commit 68a34e18b7
47 changed files with 1536 additions and 64 deletions

View file

@ -128,6 +128,12 @@ update_domain_zone
chmod 640 $conf
chown root:named $conf
# dns-cluster
if [ ! -z "$DNS_CLUSTER" ]; then
cmd="v-add-remote-dns-domain $user $domain"
echo "$cmd" >> $VESTA/data/queue/dns-cluster.pipe
fi
#----------------------------------------------------------#
# Vesta #
@ -139,7 +145,7 @@ increase_user_value "$user" '$U_DNS_RECORDS' "$records"
# Restart named
if [ "$restart" != 'no' ]; then
$BIN/v-restart-dns "$EVENT"
$BIN/v-restart-dns
fi
# Logging