From d0158f6d6bfb4a30ba09258825fcce47c2e14704 Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q <49044505+hp3icc@users.noreply.github.com> Date: Thu, 26 Jan 2023 00:13:20 -0500 Subject: [PATCH] Update install.sh --- install.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/install.sh b/install.sh index bff4402..fbe6897 100644 --- a/install.sh +++ b/install.sh @@ -58,7 +58,31 @@ sudo pip3 install ansi2html sudo apt-get install python-pip -y sudo apt-get install python-dev -y sudo apt-get install rrdtool -y +# +if [ -d "/opt/FreeDMR" ]; +then + sudo rm /opt/FreeDMR/ -r + #echo "found file" +else + echo "file not found" +fi +if [ -d "/opt/FDMR-Monitor" ]; +then + sudo rm /opt/FDMR-Monitor/ -r + #echo "found file" +else + echo "file not found" + +fi +if [ -d "/var/www/fdmr" ]; +then + sudo rm /var/www/fdmr/ -r + #echo "found file" +else + echo "file not found" + +fi ################## sudo cat > /opt/emq-ver <<- "EOF" EMQ-VER: 20