From b5b5f4578854a206cf1b20661db056921a47d88a Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sun, 23 Jul 2023 04:03:57 +0000 Subject: [PATCH] Update update.sh --- update.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/update.sh b/update.sh index 5c85f3d..f4148bb 100644 --- a/update.sh +++ b/update.sh @@ -1,4 +1,16 @@ #!/bin/bash +if [ -f "/opt/wdp2" ] +then + echo "found file" +else +cat > /opt/wdp <<- "EOFX" +######################################### +# Select number port, FreeDMR Dashboard # +######################################### + +Web-Dashboar-Port: 80 +EOFX +fi if [ -f "/opt/extra-1.sh" ] then echo "found file" @@ -869,14 +881,6 @@ then else mkdir /var/www/fdmr2 fi -sudo cat > /opt/wdp <<- "EOF" -######################################### -# Select number port, FreeDMR Dashboard # -######################################### - -Web-Dashboar-Port: 80 -EOF - apps=("wget" "git" "sudo" "python3" "python3-pip" "python3-dev" "libffi-dev" "libssl-dev" "cargo" "sed" "default-libmysqlclient-dev" "build-essential")