Medowar 1 mês atrás
pai
commit
1174a96245
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      README.md
  2. 2 2
      deploy-statstracking.sh

+ 1 - 1
README.md

@@ -165,7 +165,7 @@ To run the script every 5 minutes with `sudo` privileges, configure the root cro
 To deploy the statstracking script, run the following command:
 To deploy the statstracking script, run the following command:
 
 
 ```bash
 ```bash
-./deploy-statstracking.sh
+curl -L https://git.medowar.de/Medowar/chrony-stats/src/master/deploy-statstracking.sh | bash
 ```
 ```
 
 
 ## License
 ## License

+ 2 - 2
deploy-statstracking.sh

@@ -1,13 +1,13 @@
 # Fail when encoutering an error
 # Fail when encoutering an error
 set -euo pipefail
 set -euo pipefail
 
 
-curl -SL https://git.medowar.de/Medowar/chrony-stats/raw/master/chrony-network-stats.sh -o chrony-network-stats.sh
+curl -SL https://git.medowar.de/Medowar/chrony-stats/raw/master/chrony-network-stats.sh -o $HOME/chrony-network-stats.sh
 chmod +x chrony-network-stats.sh
 chmod +x chrony-network-stats.sh
 
 
 sudo apt update
 sudo apt update
 sudo apt install -y nginx vnstat vnstati rrdtool chrony
 sudo apt install -y nginx vnstat vnstati rrdtool chrony
 
 
-mv chrony-network-stats.sh /usr/local/bin/chrony-network-stats.sh
+mv $HOME/chrony-network-stats.sh /usr/local/bin/chrony-network-stats.sh
 # Add crontab to run every 5 minutes and discard output
 # Add crontab to run every 5 minutes and discard output
 (crontab -l 2>/dev/null; echo "*/5 * * * * /usr/local/bin/chrony-network-stats.sh >/dev/null 2>&1") | crontab -
 (crontab -l 2>/dev/null; echo "*/5 * * * * /usr/local/bin/chrony-network-stats.sh >/dev/null 2>&1") | crontab -