|
|
|
|
@ -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/FREQUENCY =.*/FREQUENCY = 1/' /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 '35 a -->' -i /opt/FDMR-Monitor-B/html/sysinfo.php
|
|
|
|
|
sed '30 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/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 '217 s/color:white/color:black/' /opt/FDMR-Monitor-B/html/css/styles.php
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
cd /opt/FDMR-Monitor-B
|
|
|
|
|
if [ -f "mon.db" ]
|
|
|
|
|
then
|
|
|
|
|
rm mon.db
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd /opt/FDMR-Monitor-B
|
|
|
|
|
python3 mon_db.py --create
|
|
|
|
|
python3 mon_db.py --update
|
|
|
|
|
cp -r /opt/FDMR-Monitor-B/html/* /var/www/fdmr-b/
|
|
|
|
|
|