From 6773829d205fc61815f8d3dd36edc60ac5c4f967 Mon Sep 17 00:00:00 2001 From: "Esteban Mackay Q." Date: Mon, 20 May 2024 21:56:58 -0500 Subject: [PATCH] update --- install.sh | 6 ++---- update.sh | 14 +++++--------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index cb042d1..7056017 100644 --- a/install.sh +++ b/install.sh @@ -263,13 +263,11 @@ cd FDMR-Monitor sudo git checkout Self_Service # sudo chmod +x install.sh -chmod 755 /opt/FDMR-Monitor/data +chmod -R 777 /opt/FDMR-Monitor/* +chmod -R +x /opt/FDMR-Monitor/* # sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg #### -sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/html/*.* -sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/sysinfo/*.* -#### sudo chmod +x /opt/FDMR-Monitor/sysinfo/cpu.sh sudo chmod +x /opt/FDMR-Monitor/sysinfo/graph.sh sudo chmod +x /opt/FDMR-Monitor/sysinfo/rrd-db.sh diff --git a/update.sh b/update.sh index 2728236..a20dd1d 100644 --- a/update.sh +++ b/update.sh @@ -581,13 +581,13 @@ sudo git clone https://gitlab.com/hp3icc/FDMR-Monitor.git cd FDMR-Monitor sudo git checkout Self_Service sudo chmod +x install.sh -chmod 777 /opt/FDMR-Monitor/data - -sudo chmod 644 /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg -#### +chmod -R 777 /opt/FDMR-Monitor/* +chmod -R +x /opt/FDMR-Monitor/* +######## +sudo apt-get install rrdtool -y sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/html/*.* sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/sysinfo/*.* -#### + sudo chmod +x /opt/FDMR-Monitor/sysinfo/cpu.sh sudo chmod +x /opt/FDMR-Monitor/sysinfo/graph.sh sudo chmod +x /opt/FDMR-Monitor/sysinfo/rrd-db.sh @@ -595,11 +595,7 @@ sudo chmod +x /opt/FDMR-Monitor/sysinfo/rrd-db.sh cd /opt/FDMR-Monitor/ #sudo rm /opt/FDMR-Monitor/install.sh ################ -sudo apt-get install rrdtool -y -sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/html/*.* -sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/sysinfo/*.* # Install the required support programs - #sudo pip install -U -r requirements.txt cd /opt/FDMR-Monitor/ cp /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg /opt/FDMR-Monitor/fdmr-mon.cfg