From 04a86cd62d807035b0df9b8a7cfa7ce3b105f7a7 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Wed, 7 Jun 2023 03:27:44 +0000 Subject: [PATCH] Update fdmr.sh --- install/fdmr.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install/fdmr.sh b/install/fdmr.sh index ac17acc..22ecdf8 100644 --- a/install/fdmr.sh +++ b/install/fdmr.sh @@ -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) \"2016\") {\$cdate=\"2016-\".date(\"Y\");} echo \$cdate; ?>
/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