dns: use epoch for the serial instead of YYYYMMDDSS.
Lacking hours/min could mean that the YYYYMMDD could remain the same but the SS would decrece, which is not what we want
This commit is contained in:
parent
612ba70bbf
commit
c0f160faa3
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
let
|
let
|
||||||
cfg = config.skynet_dns;
|
cfg = config.skynet_dns;
|
||||||
|
|
||||||
# writes current date to a file
|
# writes current epoch to a file (will need to be fixed in 2038)
|
||||||
current_date_path = pkgs.runCommand "current_date" {} "date '+%Y%m%d%S' > $out";
|
current_date_path = pkgs.runCommand "current_date" {} "date '+%s' > $out";
|
||||||
# reads that date to a string
|
# reads that date to a string
|
||||||
current_date = (lib.readFile current_date_path);
|
current_date = (lib.readFile current_date_path);
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue