diff options
author | 2020-04-28 22:20:09 -0700 | |
---|---|---|
committer | 2020-04-28 22:20:09 -0700 | |
commit | 6925ffcc3d6adef82c582c9d895878bf219a2260 (patch) | |
tree | d09965093ca3b8cb6f5ab6c18de596462de85807 /mirmon-rsync.sh | |
parent | snapshots: call new wrapper (diff) | |
download | gentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.tar.gz gentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.tar.bz2 gentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.zip |
switch to new refactored scripts
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'mirmon-rsync.sh')
-rwxr-xr-x | mirmon-rsync.sh | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/mirmon-rsync.sh b/mirmon-rsync.sh index 0f37f78..d97e149 100755 --- a/mirmon-rsync.sh +++ b/mirmon-rsync.sh @@ -1,31 +1,5 @@ #!/bin/bash - -INFRA=" -albatross -boobie -dipper -quetzal -starling -swan -" - -cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/rsync_mirrors -# Grab mirrors from the web -[[ -d ./var ]] || mkdir ./var -../get-mirrors-from-rsync-xml.rb > ./var/g.mirrors -# infra mirrors, "manually added" to list to check -for i in ${INFRA}; do - echo "gentoo rsync://$i.gentoo.org/" >> ./var/g.mirrors -done -# 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 -[[ -d ../../htdocs/rsync ]] || mkdir ../../htdocs/rsync -# Set up a nice link to our mirror page directly: -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 -..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/rsync_mirrors/var/mirmon.state \ - > ../../htdocs/rsync/state.json +exec $(dirname "$0")/mirmon-wrapper.sh \ + --mode=rsync \ + --xml-src=rsync \ + --url=https://www.gentoo.org/support/rsync-mirrors/ |