diff options
-rwxr-xr-x | mirmon-snapshots.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mirmon-snapshots.sh b/mirmon-snapshots.sh index 0f10688..5a5c127 100755 --- a/mirmon-snapshots.sh +++ b/mirmon-snapshots.sh @@ -12,6 +12,7 @@ HTDOCS=${SITEDIR}/htdocs/${MODE} MIRMON=$(readlink -f "${SITEDIR}"/mirmon/mirmon) CONFFILE=$(readlink -f "${MODEDIR}"/mirmon.conf) VAR_GMIRRORS=${VARDIR}/g.mirrors +URL=https://www.gentoo.org/downloads/mirrors/ # Grab mirrors from the web mkdir -p "${VARDIR}" @@ -32,7 +33,7 @@ mv -f "${VAR_GMIRRORS}"{.tmp,} # Set up a nice link to our mirror page directly: mkdir -p ${HTDOCS} sed \ - -e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \ + -e "s#mirrors</H2>#<a href="${URL}">mirrors</a></H2>#" \ >"${HTDOCS}"/index.html.tmp <"${HTDOCS}"/index-wip.html \ && mv -f "${HTDOCS}"/index.html{.tmp,} |