From bca371b57454dc7c2b398b715983142a800e4963 Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q <49044505+hp3icc@users.noreply.github.com> Date: Sun, 5 Feb 2023 08:33:24 -0500 Subject: [PATCH] Update install.sh --- install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index bbe8835..fc820db 100644 --- a/install.sh +++ b/install.sh @@ -74,6 +74,14 @@ then else echo "file not found" +fi +if [ -d "/var/www" ]; +then + echo "found file" +else + mkdir /var/www + #echo "file not found" + fi if [ -d "/var/www/fdmr" ]; then @@ -118,8 +126,7 @@ pip3 install -r requirements.txt sudo rm requirements.txt sudo rm get-pip.py # -mkdir /var/www -mkdir /var/www/html +mkdir /var/www/fdmr mkdir /var/log/FreeDMR sudo chmod +777 /var/log @@ -351,7 +358,6 @@ sed '33 a ' -i /opt/FDMR-Monitor/html/sysinfo.php #### sudo sed -i 's/localhost_2-day.png/localhost_1-day.png/' /opt/FDMR-Monitor/html/sysinfo.php -cd /var/www/html/sysinfo/ #sudo sed -i 's/var\/www\/html/opt\/FDMR-Monitor\/html/' cpu.sh #sudo sed -i 's/var\/www\/html/opt\/FDMR-Monitor\/html/' graph.sh sudo sed -i "s/HBMonv2/FDMR-Monitor/g" /opt/FDMR-Monitor/sysinfo/*.sh