diff options
author | 2020-04-28 00:42:33 -0700 | |
---|---|---|
committer | 2020-04-28 00:43:52 -0700 | |
commit | 92e5c14c71eb10d67d6880be56e8aab860f97092 (patch) | |
tree | 635c120a7e4b15d4145315c152e61b33b7416816 /mirmon-experimental.sh | |
parent | consistency in title (diff) | |
download | gentoo-mirrorstats-92e5c14c71eb10d67d6880be56e8aab860f97092.tar.gz gentoo-mirrorstats-92e5c14c71eb10d67d6880be56e8aab860f97092.tar.bz2 gentoo-mirrorstats-92e5c14c71eb10d67d6880be56e8aab860f97092.zip |
mirrorstats: track experimental & releases seperately
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'mirmon-experimental.sh')
-rw-r--r-- | mirmon-experimental.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mirmon-experimental.sh b/mirmon-experimental.sh new file mode 100644 index 0000000..f76a3d3 --- /dev/null +++ b/mirmon-experimental.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/experimental_mirrors +# Grab mirrors from the web +[[ -d ./var ]] || mkdir ./var +./get-mirror-list-experimental.rb > ./var/g.mirrors +# fatal if the state file is NOT present. +[[ -e ./var/mirmon.state ]] || touch ./var/mirmon.state +# run mirmon +/usr/bin/perl ../../mirmon/mirmon -c ./mirmon.conf -q -get update +# Set up a nice link to our mirror page directly: +[[ -d ../../htdocs/experimental ]] || mkdir ../../htdocs/experimental +sed \ + -e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \ + >../../htdocs/experimental/index.html <../../htdocs/experimental/index-wip.html +# Generate a json file containing the state of each mirror +../json/generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/experimental_mirrors/var/mirmon.state \ + > ../../htdocs/experimental/state.json |