diff options
-rw-r--r-- | config.sample.lua | 2 | ||||
-rwxr-xr-x | generate-html.lua | 2 | ||||
-rwxr-xr-x | generate-json.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/config.sample.lua b/config.sample.lua index cd3b9ce..e6088f9 100644 --- a/config.sample.lua +++ b/config.sample.lua @@ -6,7 +6,7 @@ conf.mirrors_yaml = "https://git.alpinelinux.org/cgit/aports/plain/main/alpine-m conf.master_url = "http://rsync.alpinelinux.org/alpine/" conf.outdir = "_out" conf.mirrors_html = "index.html" -conf.mirrors_json = "status.json" +conf.status_json = "status.json" conf.http_timeout = 3 conf.archs = { "x86", "x86_64", "armhf", "aarch64", "ppc64le", "s390x" } conf.repos = { "main", "community", "testing", "backports" } diff --git a/generate-html.lua b/generate-html.lua index a149353..feb8caa 100755 --- a/generate-html.lua +++ b/generate-html.lua @@ -177,7 +177,7 @@ function build_status_tables(indexes) return res end -local out_json = ("%s/%s"):format(conf.outdir, conf.mirrors_json) +local out_json = ("%s/%s"):format(conf.outdir, conf.status_json) local indexes = json.decode(utils.read_file(out_json)) local status = build_status_tables(indexes) local mirrors = get_mirrors() diff --git a/generate-json.lua b/generate-json.lua index e2febf6..f134da4 100755 --- a/generate-json.lua +++ b/generate-json.lua @@ -73,7 +73,7 @@ end --- write results to json file on disk function write_json(t) - local output = ("%s/%s"):format(conf.outdir, conf.mirrors_json) + local output = ("%s/%s"):format(conf.outdir, conf.status_json) local f = assert(io.open(output, "w")) local json = assert(json.encode(t)) f:write(json) |