Skip to content

Commit 0fccd69

Browse files
author
Kristan Kenney
committed
Update DNS counters when changing template
1 parent d1ef53d commit 0fccd69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-change-dns-domain-tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ fi
137137
update_object_value 'dns' 'DOMAIN' "$domain" '$TPL' "$template"
138138
update_object_value 'dns' 'DOMAIN' "$domain" '$RECORDS' "$records"
139139

140+
# Rebuild DNS zone and update counters to ensure that it has updated correctly
141+
$BIN/v-rebuild-dns-domain $user $domain no
142+
$BIN/v-update-user-stats $user
143+
$BIN/v-update-user-counters $user
144+
140145
# Restarting named
141146
$BIN/v-restart-dns $restart
142147
check_result $? "DNS restart failed" >/dev/null

0 commit comments

Comments
 (0)