Skip to content

Commit 40acd17

Browse files
committed
Use closer.lua instead of deprecated mirrors.cgi
1 parent 52ae480 commit 40acd17

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

pages/downloads.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ title: Downloads
33
permalink: /downloads/
44
---
55

6+
{% assign closerLink = 'https://www.apache.org/dyn/closer.lua' %}
7+
{% assign downloadsLink = 'https://downloads.apache.org' %}
8+
{% assign glyphSave = '&nbsp;<span class="fa-solid fa-cloud-arrow-down"></span>' %}
9+
{% assign glyphLock = '&nbsp;<span class="fa-solid fa-lock"></span>' %}
10+
{% assign srcbinArray = 'src bin' | split: ' ' %}
11+
{% assign btnDownloadStyle = 'class="btn btn-primary" style="text-transform: none; font-family: monospace"' %}
12+
{% assign btnSigStyle = 'class="btn btn-outline-secondary" style="font-family: monospace"' %}
13+
{% assign btnHashStyle = 'class="btn btn-outline-secondary" style="font-family: monospace"' %}
14+
{% assign btnDocStyle = 'class="btn btn-secondary" style="text-transform: none; font-family: monospace; margin-bottom: 5px"' %}
15+
616
<script type="text/javascript">
717

818
var updateLinks = function(mirror) {
@@ -51,24 +61,14 @@ var mirrorsCallback = function(json) {
5161
};
5262

5363
// get mirrors when page is ready
54-
$(function() { $.getJSON("https://accumulo.apache.org/mirrors.cgi?as_json", mirrorsCallback); });
64+
$(function() { $.getJSON("{{closerLink}}?as_json", mirrorsCallback); });
5565

5666
</script>
5767

5868
<div id="mirror_selection"></div>
5969

6070
Be sure to [verify your downloads][VERIFY_PROCEDURES] using [these KEYS][GPG_KEYS].
6171

62-
{% assign closerLink = 'https://www.apache.org/dyn/closer.lua' %}
63-
{% assign downloadsLink = 'https://downloads.apache.org' %}
64-
{% assign glyphSave = '&nbsp;<span class="fa-solid fa-cloud-arrow-down"></span>' %}
65-
{% assign glyphLock = '&nbsp;<span class="fa-solid fa-lock"></span>' %}
66-
{% assign srcbinArray = 'src bin' | split: ' ' %}
67-
{% assign btnDownloadStyle = 'class="btn btn-primary" style="text-transform: none; font-family: monospace"' %}
68-
{% assign btnSigStyle = 'class="btn btn-outline-secondary" style="font-family: monospace"' %}
69-
{% assign btnHashStyle = 'class="btn btn-outline-secondary" style="font-family: monospace"' %}
70-
{% assign btnDocStyle = 'class="btn btn-secondary" style="text-transform: none; font-family: monospace; margin-bottom: 5px"' %}
71-
7272
## Current Releases
7373

7474
{% assign linkVers = '3.0.0' %}

0 commit comments

Comments
 (0)