Use slugs in cache warmer
This commit is contained in:
parent
0965140bd5
commit
1088655b1f
@ -39,12 +39,11 @@ do for url in / \
|
|||||||
curl -s "https://${hostname}${url}" >/dev/null
|
curl -s "https://${hostname}${url}" >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
counter=1
|
slugs=$(cat pools.json | jq -r .slugs[])
|
||||||
while [ $counter -le 134 ]
|
for slug in $slugs
|
||||||
do
|
do
|
||||||
curl -s "https://${hostname}/api/v1/mining/pool/${counter}/hashrate" >/dev/null
|
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" >/dev/null
|
||||||
curl -s "https://${hostname}/api/v1/mining/pool/${counter}" >/dev/null
|
curl -s "https://${hostname}/api/v1/mining/pool/${slug}" >/dev/null
|
||||||
((counter++))
|
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user