mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update fdmr.sh
This commit is contained in:
parent
85b02c2fed
commit
04a86cd62d
|
|
@ -296,6 +296,7 @@ sed -i "s/VOICE_IDENT:.*/VOICE_IDENT: False/g" /opt/FreeDMR/FreeDMR-SAMPLE.cfg
|
|||
sed -i "s/VALIDATE_SERVER_IDS:.*/VALIDATE_SERVER_IDS: False/g" /opt/FreeDMR/FreeDMR-SAMPLE.cfg
|
||||
sed -i "s/ALLOW_UNREG_ID:.*/ALLOW_UNREG_ID: True/g" /opt/FreeDMR/FreeDMR-SAMPLE.cfg
|
||||
sed -i "s/PROXY_CONTROL:.*/PROXY_CONTROL: False/g" /opt/FreeDMR/FreeDMR-SAMPLE.cfg
|
||||
sed -i "s/54000/56000/g" /opt/FreeDMR/FreeDMR-SAMPLE.cfg
|
||||
cp /opt/FreeDMR/FreeDMR-SAMPLE.cfg /opt/FreeDMR-SAMPLE.cfg
|
||||
cd /opt/
|
||||
cat FreeDMR-SAMPLE.cfg conf.txt obp.txt >> /opt/FreeDMR/config/FreeDMR.cfg
|
||||
|
|
@ -328,9 +329,9 @@ sed '35 a -->' -i /opt/FDMR-Monitor/html/sysinfo.php
|
|||
####
|
||||
sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/html/*.*
|
||||
sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/sysinfo/*.*
|
||||
sed -i 's/1100/1200/' /opt/FDMR-Monitor/html/*.*
|
||||
sed -i 's/1100/1200/' /opt/FDMR-Monitor/html/css/*.*
|
||||
sed -i 's/1100/1200/' /opt/FDMR-Monitor/templates/*.*
|
||||
sed -i "s/1100/1200/g" /opt/FDMR-Monitor/html/*.*
|
||||
sed -i "s/1100/1200/g" /opt/FDMR-Monitor/html/css/*.*
|
||||
sed -i "s/1100/1200/g" /opt/FDMR-Monitor/templates/*.*
|
||||
sed -i 's/b1eee9/3bb43d/' /opt/FDMR-Monitor/html/css/*.*
|
||||
####
|
||||
sed -i 's/localhost_2-day.png/localhost_1-day.png/' /opt/FDMR-Monitor/html/sysinfo.php
|
||||
|
|
@ -380,6 +381,12 @@ sed -i "s/test/selfcare/g" /opt/FDMR-Monitor/proxy/proxy_db.py
|
|||
sed -i "s/root/emqte1/g" /opt/FDMR-Monitor/proxy/proxy_db.py
|
||||
sed -i "s/root/emqte1/g" /opt/FDMR-Monitor/proxy/proxy.cfg
|
||||
sed -i "s/test/selfcare/g" /opt/FDMR-Monitor/proxy/proxy.cfg
|
||||
sed -i "s/54000/56000/g" /opt/FDMR-Monitor/proxy/proxy_db.py
|
||||
sed -i "s/54000/56000/g" /opt/FDMR-Monitor/proxy/proxy.cfg
|
||||
sed -i "s/54100/56100/g" /opt/FDMR-Monitor/proxy/proxy_db.py
|
||||
sed -i "s/54100/56100/g" /opt/FDMR-Monitor/proxy/proxy.cfg
|
||||
sed -i "s/54000/56000/g" /opt/FDMR-Monitor/proxy/hotspot_proxy_v2.py
|
||||
sed -i "s/54100/56100/g" /opt/FDMR-Monitor/proxy/hotspot_proxy_v2.py
|
||||
#################
|
||||
cp /opt/FDMR-Monitor/proxy/hotspot_proxy_v2.py /opt/FreeDMR/hotspot_proxy_v2.py
|
||||
cp /opt/FDMR-Monitor/proxy/proxy.cfg /opt/FreeDMR/proxy.cfg
|
||||
|
|
@ -644,6 +651,7 @@ cat > /opt/FDMR-Monitor/templates/main_table.html <<- "EOF"
|
|||
|
||||
EOF
|
||||
#
|
||||
sed -i "s/1100/1200/g" /opt/FDMR-Monitor/templates/*.*
|
||||
sed -i "s/Copyright (c) 2016-.*/Copyright (c) <?php \$cdate=date(\"Y\"); if (\$cdate > \"2016\") {\$cdate=\"2016-\".date(\"Y\");} echo \$cdate; ?><br>/g" /var/www/fdmr/*.php
|
||||
sed -i "s/meta name=\"description.*/meta name=\"description\" content=\"Copyright (c) 2016-22.The Regents of the K0USY Group. All rights reserved. Version OA4DOA 2022 (v270422)\">/g" /var/www/fdmr/*.php
|
||||
sed -i '166 s/hotpink/#ad02fd/g' /var/www/fdmr/css/styles.php
|
||||
|
|
|
|||
Loading…
Reference in New Issue