merge-requests/1/head
Esteban Mackay Q. 2 years ago
parent 463837c3f4
commit 8a26a9a4bd

@ -352,6 +352,27 @@ cd /opt/FreeDMR/
mv loro.cfg /opt/FreeDMR/playback.cfg
sed -i 's/54915/49061/' /opt/FreeDMR/playback.cfg
sudo chmod +x /opt/FreeDMR/config/*
#############
wget https://raw.githubusercontent.com/CS8ABG/FDMR-Monitor/Self_Service/proxy/hotspot_proxy_v2.py -O /opt/FreeDMR/hotspot_proxy_v2.py
wget https://raw.githubusercontent.com/CS8ABG/FDMR-Monitor/Self_Service/proxy/proxy_SAMPLE.cfg -O /opt/FreeDMR/proxy.cfg
wget https://github.com/CS8ABG/FDMR-Monitor/blob/Self_Service/proxy/proxy_db.py -O /opt/FreeDMR/proxy_db.py
####################
sed -i "s/db_username =.*/db_username = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_password =.*/db_password = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_name =.*/db_name = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/\/freedmr.cfg/\/config\/FreeDMR.cfg/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_selfcare =.*/db_selfcare = ProxyDB('localhost', 'hbmon', 'hbmon', 'hbmon', 3306)/g" /opt/FreeDMR/proxy_db.py
sed -i "s/USERNAME =.*/USERNAME = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/PASSWORD =.*/PASSWORD = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/DB_NAME =.*/DB_NAME = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54000/56400/g" /opt/FreeDMR/proxy_db.py
sed -i "s/54000/56400/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54100/56499/g" /opt/FreeDMR/proxy_db.py
sed -i "s/54100/56499/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54000/56400/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/54100/56499/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/1234567/1234567,1231237,123123701/g" /opt/FreeDMR/proxy.cfg
#sed -i '228s/20/50/' /opt/FreeDMR/hotspot_proxy_v2.py
#######################
#FDMR-Monitor
cd /opt

@ -594,27 +594,27 @@ cd /opt/FreeDMR/
mv loro.cfg /opt/FreeDMR/playback.cfg
sudo sed -i 's/54915/49061/' /opt/FreeDMR/playback.cfg
#############
sed -i "s/db_username =.*/db_username = 'hbmon'/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/db_password =.*/db_password = 'hbmon'/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/db_name =.*/db_name = 'hbmon'/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/\/freedmr.cfg/\/config\/FreeDMR.cfg/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/db_selfcare =.*/db_selfcare = ProxyDB('localhost', 'hbmon', 'hbmon', 'hbmon', 3306)/g" /opt/FDMR-Monitor2/proxy/proxy_db.py
sed -i "s/USERNAME =.*/USERNAME = hbmon/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
sed -i "s/PASSWORD =.*/PASSWORD = hbmon/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
sed -i "s/DB_NAME =.*/DB_NAME = hbmon/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
sed -i "s/54000/56400/g" /opt/FDMR-Monitor2/proxy/proxy_db.py
sed -i "s/54000/56400/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
sed -i "s/54100/56499/g" /opt/FDMR-Monitor2/proxy/proxy_db.py
sed -i "s/54100/56499/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
sed -i "s/54000/56400/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/54100/56499/g" /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
sed -i "s/1234567/1234567,1231237,123123701/g" /opt/FDMR-Monitor2/proxy/proxy.cfg
#sed -i '228s/20/50/' /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py
#################
cp /opt/FDMR-Monitor2/proxy/hotspot_proxy_v2.py /opt/FreeDMR/hotspot_proxy_v2.py
cp /opt/FDMR-Monitor2/proxy/proxy.cfg /opt/FreeDMR/proxy.cfg
cp /opt/FDMR-Monitor2/proxy/proxy_db.py /opt/FreeDMR/proxy_db.py
wget https://raw.githubusercontent.com/CS8ABG/FDMR-Monitor/Self_Service/proxy/hotspot_proxy_v2.py -O /opt/FreeDMR/hotspot_proxy_v2.py
wget https://raw.githubusercontent.com/CS8ABG/FDMR-Monitor/Self_Service/proxy/proxy_SAMPLE.cfg -O /opt/FreeDMR/proxy.cfg
wget https://github.com/CS8ABG/FDMR-Monitor/blob/Self_Service/proxy/proxy_db.py -O /opt/FreeDMR/proxy_db.py
####################
sed -i "s/db_username =.*/db_username = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_password =.*/db_password = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_name =.*/db_name = 'hbmon'/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/\/freedmr.cfg/\/config\/FreeDMR.cfg/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/db_selfcare =.*/db_selfcare = ProxyDB('localhost', 'hbmon', 'hbmon', 'hbmon', 3306)/g" /opt/FreeDMR/proxy_db.py
sed -i "s/USERNAME =.*/USERNAME = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/PASSWORD =.*/PASSWORD = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/DB_NAME =.*/DB_NAME = hbmon/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54000/56400/g" /opt/FreeDMR/proxy_db.py
sed -i "s/54000/56400/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54100/56499/g" /opt/FreeDMR/proxy_db.py
sed -i "s/54100/56499/g" /opt/FreeDMR/proxy.cfg
sed -i "s/54000/56400/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/54100/56499/g" /opt/FreeDMR/hotspot_proxy_v2.py
sed -i "s/1234567/1234567,1231237,123123701/g" /opt/FreeDMR/proxy.cfg
#sed -i '228s/20/50/' /opt/FreeDMR/hotspot_proxy_v2.py
#################
sudo chmod +x /opt/FreeDMR/*.py
#sudo chmod +x /opt/FreeDMR/config/*.py
sh /opt/extra-1.sh

Loading…
Cancel
Save

Powered by TurnKey Linux.