Update menu-fdmr

This commit is contained in:
Esteban Mackay Q. 2024-05-27 23:01:53 -05:00
parent 694f6fd421
commit b207e5258e
1 changed files with 12 additions and 12 deletions

View File

@ -214,12 +214,12 @@ serd0=$(grep "Web-Dashboar-select:" $wdp | grep -oP 'Web-Dashboar-select:\s*\K.*
fi
sofd0=$(grep "Web-Dashboar-soft:" $wdp | grep -oP 'Web-Dashboar-soft:\s*\K.*')
rm $sofd0/data/*
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;"
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;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.last_heard;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.lstheard_log;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.peer_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.subscriber_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.talkgroup_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.tg_count;"
cd $sofd0
python3 mon_db.py --create
python3 mon_db.py --update
@ -395,12 +395,12 @@ serd0=$(grep "Web-Dashboar-select:" $wdp | grep -oP 'Web-Dashboar-select:\s*\K.*
fi
sofd0=$(grep "Web-Dashboar-soft:" $wdp | grep -oP 'Web-Dashboar-soft:\s*\K.*')
rm $sofd0/data/*
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;"
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;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.last_heard;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.lstheard_log;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.peer_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.subscriber_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.talkgroup_ids;"
mysql -u root -e "DROP TABLE IF EXISTS hbmon.tg_count;"
cd $sofd0
python3 mon_db.py --create
python3 mon_db.py --update