No description
  • Shell 60.5%
  • Gnuplot 39.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-13 22:19:50 +03:00
branding change font 2023-02-03 10:14:10 +02:00
workspace Refactoring 2023-02-02 20:59:48 +02:00
.gitignore Cache responses in case of network errors 2023-02-11 19:10:18 +02:00
generate.gnuplot Refactoring, config support, update/post subcommands 2023-02-09 18:44:10 +02:00
main.cfg.example Refactoring, config support, update/post subcommands 2023-02-09 18:44:10 +02:00
README.md Update dependencies list 2023-02-11 19:15:01 +02:00
uafedistats.sh fix by claude 2026-04-13 22:19:50 +03:00

uafedistats.sh

Даний проєкт є форком usercount, але переписаний з Python на Bash і використовує виключно список українських інстансів.

Залежності

  • bash
  • jq
  • sed
  • curl
  • grep
  • coreutils
  • gnuplot

Налаштування

$ git clone https://github.com/uanet-exception/uafedistats.git /opt/uafedistats && cd /opt/uafedistats
...
/opt/uafedistats$ cp main.cfg.example main.cfg
/opt/uafedistats$ vim main.cfg
...
/opt/uafedistats$ echo "*/20  *    * * *   root    bash -c '/opt/uafedistats/uafedistats.sh update &>> /opt/uafedistats/errors.log'" | sudo tee -a /etc/crontab
/opt/uafedistats$ echo "0  *    * * *   root    bash -c '/opt/uafedistats/uafedistats.sh post &>> /opt/uafedistats/errors.log'" | sudo tee -a /etc/crontab
/opt/uafedistats$ sudo service cron reload