summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-04-28 21:26:01 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2020-04-28 21:26:01 -0700
commit26ccdfc4d14f78e850630c9ff81c8a9ee229f274 (patch)
tree61a495e8b323e477025d1a0745102f7a548367bf
parentsnapshots: fix var dir switch (diff)
downloadgentoo-mirrorstats-26ccdfc4d14f78e850630c9ff81c8a9ee229f274.tar.gz
gentoo-mirrorstats-26ccdfc4d14f78e850630c9ff81c8a9ee229f274.tar.bz2
gentoo-mirrorstats-26ccdfc4d14f78e850630c9ff81c8a9ee229f274.zip
Update json path
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xgenerate-json.py (renamed from json/generate-json.py)0
-rwxr-xr-xmirmon-distfiles.sh2
-rwxr-xr-xmirmon-experimental.sh2
-rwxr-xr-xmirmon-releases.sh2
-rwxr-xr-xmirmon-rsync.sh2
-rwxr-xr-xmirmon-snapshots.sh2
6 files changed, 5 insertions, 5 deletions
diff --git a/json/generate-json.py b/generate-json.py
index c452e81..c452e81 100755
--- a/json/generate-json.py
+++ b/generate-json.py
diff --git a/mirmon-distfiles.sh b/mirmon-distfiles.sh
index fedefdc..5738c99 100755
--- a/mirmon-distfiles.sh
+++ b/mirmon-distfiles.sh
@@ -14,5 +14,5 @@ sed \
-e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \
>../../htdocs/distfiles/index.html <../../htdocs/distfiles/index-wip.html
# Generate a json file containing the state of each mirror
-../json/generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/distfiles_mirrors/var/mirmon.state \
+..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/distfiles_mirrors/var/mirmon.state \
> ../../htdocs/distfiles/state.json
diff --git a/mirmon-experimental.sh b/mirmon-experimental.sh
index fae7df6..5b671bf 100755
--- a/mirmon-experimental.sh
+++ b/mirmon-experimental.sh
@@ -14,5 +14,5 @@ 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 \
+..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/experimental_mirrors/var/mirmon.state \
> ../../htdocs/experimental/state.json
diff --git a/mirmon-releases.sh b/mirmon-releases.sh
index 6790756..bbd5640 100755
--- a/mirmon-releases.sh
+++ b/mirmon-releases.sh
@@ -14,5 +14,5 @@ sed \
-e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \
>../../htdocs/releases/index.html <../../htdocs/releases/index-wip.html
# Generate a json file containing the state of each mirror
-../json/generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/releases_mirrors/var/mirmon.state \
+..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/releases_mirrors/var/mirmon.state \
> ../../htdocs/releases/state.json
diff --git a/mirmon-rsync.sh b/mirmon-rsync.sh
index 1e432e2..0f37f78 100755
--- a/mirmon-rsync.sh
+++ b/mirmon-rsync.sh
@@ -27,5 +27,5 @@ 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 \
+..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/rsync_mirrors/var/mirmon.state \
> ../../htdocs/rsync/state.json
diff --git a/mirmon-snapshots.sh b/mirmon-snapshots.sh
index ee0338b..b1198de 100755
--- a/mirmon-snapshots.sh
+++ b/mirmon-snapshots.sh
@@ -30,7 +30,7 @@ sed \
&& mv -f "${HTDOCS}"/index.html{.tmp,}
# Generate a json file containing the state of each mirror
-../json/generate-json.py \
+"${REPODIR}"/generate-json.py \
"${VARDIR}"/mirmon.state \
>"${HTDOCS}"/state.json.tmp \
&& mv -f "${HTDOCS}"/state.json{.tmp,}