do not remove dns domain on suspend

This commit is contained in:
Serghey Rodin 2013-02-17 12:23:06 +02:00
commit 636213f0b6

View file

@ -37,7 +37,7 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
#----------------------------------------------------------# #----------------------------------------------------------#
# Deleting domain from named.conf # 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' increase_user_value "$user" '$SUSPENDED_DNS'
# Restart named # Restart named
if [ "$restart" != 'no' ]; then #if [ "$restart" != 'no' ]; then
$BIN/v-restart-dns "$EVENT" # $BIN/v-restart-dns "$EVENT"
fi #fi
# Logging # Logging
log_event "$OK" "$EVENT" log_event "$OK" "$EVENT"