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
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"