mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-28 05:01:50 +02:00
fixed dns record counter
This commit is contained in:
@@ -49,6 +49,11 @@ update_domain_zone
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Upddate counters
|
||||
records="$(wc -l $USER_DATA/dns/$domain.conf | cut -f1 -d ' ')"
|
||||
update_object_value 'dns' 'DOMAIN' "$domain" '$RECORDS' "$records"
|
||||
decrease_user_value "$user" '$U_DNS_RECORDS'
|
||||
|
||||
# Restart named
|
||||
$BIN/v_restart_dns "$EVENT"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user