Cron automations

This commit is contained in:
2025-09-21 19:19:20 +02:00
parent 8efc6459c3
commit d19fe2e4bf
5 changed files with 131 additions and 17 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
# 6,21,36,51 * * * * /docker/users/hpr/userfiles/bin/export-jsons-stats.bash > /dev/null 2>&1 &
net_rc="$HOME/userfiles/.netrc"
output_file="$HOME/hub.hackerpublicradio.org/public_html/stats.json"
curl --silent --netrc-file ${net_rc} https://hub.hackerpublicradio.org/cms/stats.php --output "${output_file}"