Преглед изворни кода

do not remove dns domain on suspend

Serghey Rodin пре 13 година
родитељ
комит
636213f0b6
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      bin/v-suspend-dns-domain

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