mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
do not remove dns domain on suspend
This commit is contained in:
parent
7b2dd7d1ce
commit
636213f0b6
1 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
|
|||
#----------------------------------------------------------#
|
||||
|
||||
# Deleting domain from named.conf
|
||||
sed -i "/\/$domain.db\"/d" /etc/named.conf
|
||||
#sed -i "/\/$domain.db\"/d" /etc/named.conf
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -50,9 +50,9 @@ sed -i "s/SUSPENDED='no'/SUSPENDED='yes'/g" $USER_DATA/dns/$domain.conf
|
|||
increase_user_value "$user" '$SUSPENDED_DNS'
|
||||
|
||||
# Restart named
|
||||
if [ "$restart" != 'no' ]; then
|
||||
$BIN/v-restart-dns "$EVENT"
|
||||
fi
|
||||
#if [ "$restart" != 'no' ]; then
|
||||
# $BIN/v-restart-dns "$EVENT"
|
||||
#fi
|
||||
|
||||
# Logging
|
||||
log_event "$OK" "$EVENT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue