Update menu-fdmr

This commit is contained in:
Esteban Mackay Q 2023-08-14 02:34:18 -05:00
parent 168f432be6
commit 397168a06e
1 changed files with 10 additions and 4 deletions

View File

@ -193,6 +193,8 @@ then sudo systemctl stop fdmr_mon.service
fi
rm /opt/FDMR-Monitor/data/*
python3 -m venv env0 &&
source env0/bin/activate &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.last_heard;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.lstheard_log;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.peer_ids;" &&
@ -200,8 +202,9 @@ mysql -u root -e "DROP TABLE IF EXISTS selfcare.subscriber_ids;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.talkgroup_ids;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.tg_count;"
cd /opt/FDMR-Monitor
python3 mon_db.py --create
python3 mon_db.py --update
python3 mon_db.py --create &&
python3 mon_db.py --update &&
deactivate
sudo systemctl start fdmr_mon.service
sudo systemctl start http.server-fdmr.service ;;
9)
@ -266,6 +269,8 @@ then sudo systemctl stop fdmr_mon2.service
fi
rm /opt/FDMR-Monitor2/data/*
python3 -m venv env0 &&
source env0/bin/activate &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.last_heard;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.lstheard_log;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.peer_ids;" &&
@ -273,8 +278,9 @@ mysql -u root -e "DROP TABLE IF EXISTS selfcare.subscriber_ids;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.talkgroup_ids;" &&
mysql -u root -e "DROP TABLE IF EXISTS selfcare.tg_count;"
cd /opt/FDMR-Monitor2
python3 mon_db.py --create
python3 mon_db.py --update
python3 mon_db.py --create &&
python3 mon_db.py --update &&
deactivate
sudo systemctl start fdmr_mon2.service
sudo systemctl start http.server-fdmr2.service ;;
10)