Add the possibility to turn off the automatic serial update.

Some users may want to explicitly update the DNS serial number. Instead
of forcing them to update on each write, a new configuration option is
used so they can chose turn it off.
This commit is contained in:
Rodolphe Breard 2015-11-14 19:05:12 +01:00
parent d54d2f0991
commit a4c03b38a5
2 changed files with 16 additions and 4 deletions

View file

@ -13,7 +13,13 @@
" limitations under the License.
augroup dnsserial
autocmd!
autocmd BufWritePre <buffer> DNSSerialUpdate
augroup END
if !exists('g:dnsserial_auto_update')
let g:dnsserial_auto_update = 1
endif
if g:dnsserial_auto_update
augroup dnsserial
autocmd!
autocmd BufWritePre <buffer> DNSSerialUpdate
augroup END
endif