Update emq-TE1x.sh

This commit is contained in:
Esteban Mackay Q 2023-01-31 23:48:31 -05:00 committed by GitHub
parent 869cad4b79
commit 979758881b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -2700,8 +2700,19 @@ sudo sed -i "s/54000/54010/g" /opt/FreeDMR/proxy.cfg
sudo sed -i "s/root/emqte1/g" /opt/FreeDMR/proxy.cfg
sudo sed -i "s/test/selfcare/g" /opt/FreeDMR/proxy.cfg
#################
#sh /opt/FDMR-Monitor/sysinfo/rrd-db.sh
#rm /opt/FDMR-Monitor/sysinfo/*.rrd
if [ -f "/opt/FDMR-Monitor/sysinfo/tempC.rrd" ]
then
rm /opt/FDMR-Monitor/sysinfo/*.rrd
elif
[ -f "/opt/FDMR-Monitor/sysinfo/load.rrd" ]
then
rm /opt/FDMR-Monitor/sysinfo/*.rrd
elif
[ -f "/opt/FDMR-Monitor/sysinfo/hdd.rrd" ]
then
rm /opt/FDMR-Monitor/sysinfo/*.rrd
fi
sh /opt/FDMR-Monitor/sysinfo/rrd-db.sh
#######################################
systemctl stop apache2