|
|
|
|
@ -916,8 +916,10 @@ chmod 755 /opt/FDMR-Monitor2/data
|
|
|
|
|
sed -i "s/LANGUAGE =.*/LANGUAGE = \"es\"/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/root/emqte1/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/test/selfcare/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/TELEGRAM/#TELEGRAM/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /opt/FDMR-Monitor2/html/config.php
|
|
|
|
|
sed -i "s/PRIVATE_NETWORK = True/PRIVATE_NETWORK = False/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/with.*/with <a href=\"https:\/\/github.com\/CS8ABG\/FDMR-Monitor\" target=\"_blank\">FDMR-Monitor2<\/a> by <a title=\"CS8ABG Dash v23.07ss\" href=\"http:\/\/www.qrz.com\/db\/CS8ABG\"target=\"_blank\">CS8ABG<\/a> , Proyect: <a href=\"https:\/\/gitlab.com\/hp3icc\/fdmr\/\"target=\"_blank\">FDMR+<\/a><\/div>/g" /opt/FDMR-Monitor2/html/include/footer.php
|
|
|
|
|
sed -i "s/with.*/with <a href=\"https:\/\/github.com\/CS8ABG\/FDMR-Monitor\" target=\"_blank\">FDMR-Monitor2<\/a> by <a title=\"CS8ABG Dash v23.07ss\" href=\"http:\/\/www.qrz.com\/db\/CS8ABG\"target=\"_blank\">CS8ABG<\/a> , Proyect: <a href=\"https:\/\/gitlab.com\/hp3icc\/fdmr\/\"target=\"_blank\">FDMR+<\/a>/g" /opt/FDMR-Monitor2/html/include/footer.php
|
|
|
|
|
sed -i "s/SUBSCRIBER_FILE =.*/SUBSCRIBER_FILE = subscriber_ids.csv/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/FILES_PATH =.*/FILES_PATH = \/opt\/FDMR-Monitor2\/data/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg
|
|
|
|
|
sed -i "s/#fff/#d1d1d1/g" /opt/FDMR-Monitor2/html/plugins/adminlte/css/adminlte.min.css
|
|
|
|
|
@ -947,11 +949,26 @@ sudo cp /opt/FDMR-Monitor2/utils/logrotate/fdmr_mon2 /etc/logrotate.d/fdmr_mon2
|
|
|
|
|
|
|
|
|
|
sudo cp /opt/FDMR-Monitor2/utils/systemd/fdmr_mon2.service /lib/systemd/system/fdmr_mon2.service
|
|
|
|
|
#sudo rm mon.db
|
|
|
|
|
if systemctl status mariadb.service |grep inactive >/dev/null 2>&1
|
|
|
|
|
then sudo systemctl start mariadb.service
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if systemctl status mariadb.service |grep disable >/dev/null 2>&1
|
|
|
|
|
then sudo systemctl enable mariadb.service
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if [ -f "mon.db" ]
|
|
|
|
|
then
|
|
|
|
|
rm mon.db
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS last_heard;"
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS lstheard_log;"
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS peer_ids;"
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS subscriber_ids;"
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS talkgroup_ids;"
|
|
|
|
|
mysql -u "root" "selfcare" -e "DROP TABLE IF EXISTS tg_count;"
|
|
|
|
|
|
|
|
|
|
python3 mon_db.py --create
|
|
|
|
|
python3 mon_db.py --update
|
|
|
|
|
|
|
|
|
|
|