summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-04-14 13:43:25 +0200
committerAlex Legler <alex@a3li.li>2015-04-14 13:43:25 +0200
commita4938a7a8e2d56e0251dd5d25365f1ce74438d63 (patch)
tree6be8103782e45e31437f0ccb9ae471cf81db0095
parentUpdate mirror data URIs and fetch method (diff)
downloadgentoo-mirrorstats-a4938a7a8e2d56e0251dd5d25365f1ce74438d63.zip
gentoo-mirrorstats-a4938a7a8e2d56e0251dd5d25365f1ce74438d63.tar.gz
gentoo-mirrorstats-a4938a7a8e2d56e0251dd5d25365f1ce74438d63.tar.bz2
Update URIs
-rw-r--r--distfiles_mirrors/mirmon.conf2
-rwxr-xr-xmirmon-distfiles.sh5
-rwxr-xr-xmirmon-rsync.sh2
3 files changed, 5 insertions, 4 deletions
diff --git a/distfiles_mirrors/mirmon.conf b/distfiles_mirrors/mirmon.conf
index 64d9737..2e6c9db 100644
--- a/distfiles_mirrors/mirmon.conf
+++ b/distfiles_mirrors/mirmon.conf
@@ -1,5 +1,5 @@
project_name Gentoo Linux
-web_page /var/www/mirrorstats.gentoo.org/htdocs/index-wip.html
+web_page /var/www/mirrorstats.gentoo.org/htdocs/distfiles/index-wip.html
icons icons
countries /var/www/mirrorstats.gentoo.org/countries.list
mirror_list /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/distfiles_mirrors/var/g.mirrors
diff --git a/mirmon-distfiles.sh b/mirmon-distfiles.sh
index d9a1d48..f8012cc 100755
--- a/mirmon-distfiles.sh
+++ b/mirmon-distfiles.sh
@@ -7,9 +7,10 @@ cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/distfiles_mirrors
# fatal if the state file is NOT present.
[[ -e ./var/mirmon.state ]] || touch ./var/mirmon.state
# run mirmon
-/usr/bin/perl ../../mirmon -c ./mirmon.conf -q -get update
+/usr/bin/perl ../../mirmon/mirmon -c ./mirmon.conf -q -get update
# Set up a nice link to our mirror page directly:
+[[ -d ../../htdocs/distfiles ]] || mkdir ../../htdocs/distfiles
sed \
-e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \
- >../../htdocs/index.html <../../htdocs/index-wip.html
+ >../../htdocs/distfiles/index.html <../../htdocs/distfiles/index-wip.html
diff --git a/mirmon-rsync.sh b/mirmon-rsync.sh
index 0efc6e0..1934d90 100755
--- a/mirmon-rsync.sh
+++ b/mirmon-rsync.sh
@@ -22,7 +22,7 @@ done
# fatal if the state file is NOT present.
[[ -e ./var/mirmon.state ]] || touch ./var/mirmon.state
# run mirmon
-/usr/bin/perl ../../mirmon -c ./mirmon.conf -q -get update
+/usr/bin/perl ../../mirmon/mirmon -c ./mirmon.conf -q -get update
[[ -d ../../htdocs/rsync ]] || mkdir ../../htdocs/rsync
# Set up a nice link to our mirror page directly:
sed \