1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-12-23 03:11:20 +00:00

On startup generate files once

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-02-05 07:18:12 +01:00
parent 73fc71df2e
commit 419816434b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -13,6 +13,8 @@ func init() {
c := cron.New()
c.AddFunc("0 * * * * *", generateZonefiles)
c.Start()
go generateZonefiles()
}
func generateZonefiles() {