mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
fixed dns record counter
This commit is contained in:
parent
ef33765d31
commit
d69ed099f2
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue