summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mirmon-distfiles.sh')
-rwxr-xr-xmirmon-distfiles.sh5
1 files changed, 3 insertions, 2 deletions
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