Skip to content

Commit 8d720ef

Browse files
author
Kristan Kenney
committed
Merge branch 'dns-update-counters' into develop
2 parents d1ef53d + 0fccd69 commit 8d720ef

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)