From 397168a06e88a4f2ad851c5dc1525f29d7b70171 Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q Date: Mon, 14 Aug 2023 02:34:18 -0500 Subject: [PATCH] Update menu-fdmr --- menu/menu-fdmr | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/menu/menu-fdmr b/menu/menu-fdmr index c5341ec..9813502 100644 --- a/menu/menu-fdmr +++ b/menu/menu-fdmr @@ -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)