From 3fa516ec0d846ee3dc26728cb0353fc0f65d4bdf Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q Date: Fri, 11 Aug 2023 17:12:51 -0500 Subject: [PATCH] update --- install.sh | 7 +++++-- update.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index a9237c5..15c9ccf 100644 --- a/install.sh +++ b/install.sh @@ -405,8 +405,8 @@ sudo git checkout Self_Service sudo chmod +x install.sh chmod 755 /opt/FDMR-Monitor/data -sed -i 's/RELOAD_TIME = 15/RELOAD_TIME = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg -sed -i 's/FREQUENCY = 10/FREQUENCY = 120/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg sed '33 a ' -i /opt/FDMR-Monitor/html/sysinfo.php @@ -923,6 +923,9 @@ chmod 755 /opt/FDMR-Monitor2/data #sed -i '72d' /opt/FDMR-Monitor2/html/include/navbar.php #sed '69 a \ ' -i /opt/FDMR-Monitor2/html/include/navbar.php +sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg +sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/LANGUAGE =.*/LANGUAGE = \"es\"/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/root/emqte1/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/test/selfcare/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg diff --git a/update.sh b/update.sh index f81886a..beef93c 100644 --- a/update.sh +++ b/update.sh @@ -614,9 +614,9 @@ sudo git checkout Self_Service sudo chmod +x install.sh chmod 777 /opt/FDMR-Monitor/data -sudo sed -i 's/RELOAD_TIME = 15/RELOAD_TIME = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg -sudo sed -i 's/FREQUENCY = 10/FREQUENCY = 120/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sudo sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sudo sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg sudo sed '33 a ' -i /opt/FDMR-Monitor/html/sysinfo.php #### @@ -1143,6 +1143,9 @@ chmod 777 /opt/FDMR-Monitor2/data #sed -i '72d' /opt/FDMR-Monitor2/html/include/navbar.php #sed '69 a \ ' -i /opt/FDMR-Monitor2/html/include/navbar.php +sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg +sed -i 's/RELOAD_TIME =.*/RELOAD_TIME = 1/' /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg +sed -i 's/FREQUENCY =.*/FREQUENCY = 1/' /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/LANGUAGE =.*/LANGUAGE = \"es\"/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/TELEGRAM/#TELEGRAM/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg sed -i "s/root/emqte1/g" /opt/FDMR-Monitor2/fdmr-mon_SAMPLE.cfg