diff --git a/update.sh b/update.sh index a5545ff..0f309cc 100644 --- a/update.sh +++ b/update.sh @@ -120,7 +120,8 @@ choix=$(whiptail --title "Script proyect HP3ICC / update FDMR+" --menu "Nota Imp 2 " Update Monitor OA4DOA " \ 3 " Update Monitor CS8ABG " \ 4 " Update Monitor CS8ABG Map " \ -5 " Menu Principal " 3>&1 1>&2 2>&3) +5 " Update DAPRS " \ +6 " Menu Principal " 3>&1 1>&2 2>&3) exitstatus=$? #on recupere ce choix #exitstatus=$? @@ -140,6 +141,9 @@ menu-up-fdmon2 ;; 4) menu-up-fdmon3 ;; 5) +bash -c "$(curl -fsSLk https://raw.githubusercontent.com/hp3icc/D-APRS/main/emq-daprs.sh)" + ;; +6) break; esac done @@ -594,12 +598,6 @@ then fi ###### -if [ -d "/opt/D-APRS" ] -then - echo "found file" -else - bash -c "$(curl -fsSLk https://raw.githubusercontent.com/hp3icc/D-APRS/main/emq-daprs.sh)" -fi if ! systemctl is-enabled fdmr_mon.service >/dev/null 2>&1 && \ ! systemctl is-enabled fdmr_mon2.service >/dev/null 2>&1; then if systemctl is-active --quiet mariadb.service; then