Update fdmr-bridge.sh

merge-requests/1/head
Esteban Mackay Q 2 years ago
parent d2f406dd0e
commit 357fd877e9

@ -115,8 +115,8 @@ find /opt/FDMR-Monitor-B -type f -exec sed -i 's/9000/9200/g' {} +
sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg
sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg
sudo chmod 644 /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg sudo chmod 644 /opt/FDMR-Monitor-B/fdmr-mon_SAMPLE.cfg
sed '33 a <!--' -i /opt/FDMR-Monitor-B/html/sysinfo.php sed '30 a <!--' -i /opt/FDMR-Monitor-B/html/sysinfo.php
sed '35 a -->' -i /opt/FDMR-Monitor-B/html/sysinfo.php sed '32 a -->' -i /opt/FDMR-Monitor-B/html/sysinfo.php
#### ####
sed -i "s/www\/html/www\/fdmr-b/g" /opt/FDMR-Monitor-B/html/*.* sed -i "s/www\/html/www\/fdmr-b/g" /opt/FDMR-Monitor-B/html/*.*
sed -i "s/www\/html/www\/fdmr-b/g" /opt/FDMR-Monitor-B/sysinfo/*.* sed -i "s/www\/html/www\/fdmr-b/g" /opt/FDMR-Monitor-B/sysinfo/*.*
@ -412,13 +412,11 @@ sed -i "s/All rights reserved.<br>.*/All rights reserved.<br><a title=\"Raspbian
sed -i '166 s/hotpink/#ad02fd/g' /opt/FDMR-Monitor-B/html/css/styles.php sed -i '166 s/hotpink/#ad02fd/g' /opt/FDMR-Monitor-B/html/css/styles.php
sed -i '217 s/color:white/color:black/' /opt/FDMR-Monitor-B/html/css/styles.php sed -i '217 s/color:white/color:black/' /opt/FDMR-Monitor-B/html/css/styles.php
# #
cd /opt/FDMR-Monitor-B
if [ -f "mon.db" ] if [ -f "mon.db" ]
then then
rm mon.db rm mon.db
fi fi
cd /opt/FDMR-Monitor-B
python3 mon_db.py --create python3 mon_db.py --create
python3 mon_db.py --update python3 mon_db.py --update
cp -r /opt/FDMR-Monitor-B/html/* /var/www/fdmr-b/ cp -r /opt/FDMR-Monitor-B/html/* /var/www/fdmr-b/

Loading…
Cancel
Save

Powered by TurnKey Linux.