Update install.sh

This commit is contained in:
Esteban Mackay Q 2022-12-07 21:27:26 -05:00 committed by GitHub
parent 55dea18f91
commit 5e974b0433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -424,7 +424,6 @@ sudo sed -i "s/PRIVATE_NETWORK = True/PRIVATE_NETWORK = False/g" /opt/FDMR-Moni
sudo sed -i "s/TGID_URL =/#TGID_URL =/g" /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg
sed '63 a TGID_URL = https://freedmr.cymru/talkgroups/talkgroup_ids_json.php' -i /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg
sed '64 a #TGID_URL = https://freedmr.cymru/talkgroups/talkgroup_ids_flags_json.php' -i /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg
sudo rm /opt/FDMR-Monitor/data/*
cd /opt/FDMR-Monitor/
sudo rm /opt/FDMR-Monitor/install.sh
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/self/install.sh
@ -645,12 +644,11 @@ systemctl start proxy.service
systemctl enable proxy.service
systemctl start fdmrparrot.service
systemctl enable fdmrparrot.service
sudo rm /opt/FDMR-Monitor/data/*
sudo rm /opt/FDMR-Monitor/sysinfo/*.rrd
sh /opt/FDMR-Monitor/sysinfo/rrd-db.sh
(crontab -l; echo "*/5 * * * * sh /opt/FDMR-Monitor/sysinfo/graph.sh")|awk '!x[$0]++'|crontab -
(crontab -l; echo "*/2 * * * * sh /opt/FDMR-Monitor/sysinfo/cpu.sh")|awk '!x[$0]++'|crontab -
(crontab -l; echo "0 3 * * * rm /opt/FDMR-Monitor/data/*")|awk '!x[$0]++'|crontab -
#(crontab -l; echo "5 3 * * * systemctl restart fdmr_mon.service")|awk '!x[$0]++'|crontab -
sudo systemctl enable fdmr_mon.service
sudo systemctl restart apache2.service