Skip to content

Commit 636213f

Browse files
committed
do not remove dns domain on suspend
1 parent 7b2dd7d commit 636213f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/v-suspend-dns-domain

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
3737
#----------------------------------------------------------#
3838

3939
# Deleting domain from named.conf
40-
sed -i "/\/$domain.db\"/d" /etc/named.conf
40+
#sed -i "/\/$domain.db\"/d" /etc/named.conf
4141

4242

4343
#----------------------------------------------------------#
@@ -50,9 +50,9 @@ sed -i "s/SUSPENDED='no'/SUSPENDED='yes'/g" $USER_DATA/dns/$domain.conf
5050
increase_user_value "$user" '$SUSPENDED_DNS'
5151

5252
# Restart named
53-
if [ "$restart" != 'no' ]; then
54-
$BIN/v-restart-dns "$EVENT"
55-
fi
53+
#if [ "$restart" != 'no' ]; then
54+
# $BIN/v-restart-dns "$EVENT"
55+
#fi
5656

5757
# Logging
5858
log_event "$OK" "$EVENT"

0 commit comments

Comments
 (0)