Adding stats and automating update. Check for url in uploads

This commit is contained in:
2024-02-14 15:11:25 +01:00
parent da88c1afc4
commit c44a6f0f04
3 changed files with 88 additions and 29 deletions

8
bin/update-stats.bash Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
hub_dir="/home/hpr/hub"
for format in txt csv json xml
do
curl --silent --netrc-file /home/hpr/.netrc https://hub.hackerpublicradio.org/cms/stats.php?format=${format} --output ${hub_dir}/stats.${format}
done