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

@ -41,9 +41,15 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
records=$(wc -l $USER_DATA/dns/$domain.conf | cut -f 1 -d ' ')
# Deleting domain in named.conf
sed -i "/\/$domain.db\"/d" /etc/named.conf
sed -i "/\/$user\/conf\/dns\/$domain.db\"/d" /etc/named.conf
rm -f $HOMEDIR/$user/conf/dns/$domain.db
# dns-cluster
if [ ! -z "$DNS_CLUSTER" ]; then
cmd="v-delete-remote-dns-domain $user $domain"
echo "$cmd" >> $VESTA/data/queue/dns-cluster.pipe
fi
#----------------------------------------------------------#
# Vesta #
@ -62,7 +68,6 @@ if [ "$restart" != 'no' ]; then
$BIN/v-restart-dns "$EVENT"
fi
# Logging
log_history "deleted dns domain $domain"
log_event "$OK" "$EVENT"