From 636213f0b6910f542c3c7a8122f790fa3abc0c61 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sun, 17 Feb 2013 12:23:06 +0200 Subject: [PATCH] do not remove dns domain on suspend --- bin/v-suspend-dns-domain | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/v-suspend-dns-domain b/bin/v-suspend-dns-domain index 7f061805d..612d2309f 100755 --- a/bin/v-suspend-dns-domain +++ b/bin/v-suspend-dns-domain @@ -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"