Commit 9210f5fe authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Take hostinfo date into consideration when setting serial

parent dfff516b
......@@ -3,6 +3,8 @@ import hostinfo.parser
import ipaddr
import hostinfo.util as util
import re
import sys
import os
def generate(tree, options):
#
......@@ -116,7 +118,7 @@ def header(tree, domain, origin=None):
| )
|;""" % dict(nameserver=soa.nameserver[0],
email=soa.email[0],
mtime=tree._mtime,
mtime=int(max(tree._mtime, os.stat(sys.argv[0]).st_mtime)),
refresh=soa.refresh[0],
retry=soa.retry[0],
expire=soa.expire[0],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment