summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-27 20:08:22 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-27 20:08:22 +0200
commit92ea4ca1710dd5eefbda4f97687ea76e34812d50 (patch)
tree0bd96b4575dc57f538dc9cf9580cd529968638af /mirmon-rsync.sh
parentAdd my GCP mirror IP to the mirmon state. (diff)
downloadgentoo-mirrorstats-92ea4ca1710dd5eefbda4f97687ea76e34812d50.tar.gz
gentoo-mirrorstats-92ea4ca1710dd5eefbda4f97687ea76e34812d50.tar.bz2
gentoo-mirrorstats-92ea4ca1710dd5eefbda4f97687ea76e34812d50.zip
Generate a json file containing the mirmon data
The new generate-json.py script will parse the data generated by mirmon which is present in the state file and convert it to json. A json file called 'state.json' will be created so that the mirmon data can be properly parsed. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'mirmon-rsync.sh')
-rwxr-xr-xmirmon-rsync.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mirmon-rsync.sh b/mirmon-rsync.sh
index 5df1c73..900832d 100755
--- a/mirmon-rsync.sh
+++ b/mirmon-rsync.sh
@@ -28,4 +28,6 @@ echo "gentoo rsync://35.190.132.250" >> ./var/g.mirrors
sed \
-e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors-rsync.xml">mirrors</a></H2>#' \
>../../htdocs/rsync/index.html <../../htdocs/rsync/index-wip.html
-
+# Generate a json file containing the state of each mirror
+../json/generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/rsync_mirrors/var/mirmon.state \
+ > ../../htdocs/rsync/state.json