mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
dns cluster support
This commit is contained in:
parent
0f7ea97e12
commit
68a34e18b7
47 changed files with 1536 additions and 64 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue