mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Adding and removing includes when suspending/unsuspending DNS zones
This commit is contained in:
parent
78bccef43c
commit
b143792750
2 changed files with 24 additions and 0 deletions
|
@ -41,6 +41,16 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Deleting system configs
|
||||
if [[ "$DNS_SYSTEM" =~ named|bind ]]; then
|
||||
if [ -e '/etc/named.conf' ]; then
|
||||
dns_conf='/etc/named.conf'
|
||||
else
|
||||
dns_conf='/etc/bind/named.conf'
|
||||
fi
|
||||
|
||||
sed -i "/\/$user\/conf\/dns\/$domain.db\"/d" $dns_conf
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue