1 |
commit: b0b29736aeb8eaddcf111c0a0c1da693fbbb60e0 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 29 04:52:08 2020 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 04:52:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=b0b29736 |
7 |
|
8 |
snapshots: fix URL |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
mirmon-snapshots.sh | 3 ++- |
13 |
1 file changed, 2 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/mirmon-snapshots.sh b/mirmon-snapshots.sh |
16 |
index 0f10688..5a5c127 100755 |
17 |
--- a/mirmon-snapshots.sh |
18 |
+++ b/mirmon-snapshots.sh |
19 |
@@ -12,6 +12,7 @@ HTDOCS=${SITEDIR}/htdocs/${MODE} |
20 |
MIRMON=$(readlink -f "${SITEDIR}"/mirmon/mirmon) |
21 |
CONFFILE=$(readlink -f "${MODEDIR}"/mirmon.conf) |
22 |
VAR_GMIRRORS=${VARDIR}/g.mirrors |
23 |
+URL=https://www.gentoo.org/downloads/mirrors/ |
24 |
|
25 |
# Grab mirrors from the web |
26 |
mkdir -p "${VARDIR}" |
27 |
@@ -32,7 +33,7 @@ mv -f "${VAR_GMIRRORS}"{.tmp,} |
28 |
# Set up a nice link to our mirror page directly: |
29 |
mkdir -p ${HTDOCS} |
30 |
sed \ |
31 |
- -e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \ |
32 |
+ -e "s#mirrors</H2>#<a href="${URL}">mirrors</a></H2>#" \ |
33 |
>"${HTDOCS}"/index.html.tmp <"${HTDOCS}"/index-wip.html \ |
34 |
&& mv -f "${HTDOCS}"/index.html{.tmp,} |