diff --git a/scripts/install-et-aircraft.sh b/scripts/install-et-aircraft.sh index 93d343a..4dc7510 100755 --- a/scripts/install-et-aircraft.sh +++ b/scripts/install-et-aircraft.sh @@ -1,7 +1,7 @@ #!/bin/bash # Author : Gaston Gonzalez # Date : 9 July 2025 -# Updated : 1 September 2025 +# Updated : 12 November 2025 # Purpose : Install et-aircraft-app set -e trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG @@ -18,7 +18,7 @@ et-log "Installing ${APP} ${VERSION}..." if [[ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]]; then - URL="https://github.com/thetechprepper/et-aircraft-app/releases/download/${VERSION}/${DOWNLOAD_FILE}" + URL="https://github.com/thetechprepper/${APP}/releases/download/${VERSION}/${DOWNLOAD_FILE}" download_with_retries ${URL} ${DOWNLOAD_FILE} mv ${DOWNLOAD_FILE} ${ET_DIST_DIR} diff --git a/scripts/install-et-predict.sh b/scripts/install-et-predict.sh new file mode 100755 index 0000000..5c80482 --- /dev/null +++ b/scripts/install-et-predict.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 12 November 2025 +# Purpose : Install et-predict-app +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +. ./env.sh +. ../overlay/opt/emcomm-tools/bin/et-common + +APP=et-predict-app +VERSION=1.1.0 +DOWNLOAD_FILE="${APP}_${VERSION}_amd64.deb" + +et-log "Installing ${APP} ${VERSION}..." + +if [[ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]]; then + + URL="https://github.com/thetechprepper/${APP}/releases/download/${VERSION}/${DOWNLOAD_FILE}" + + download_with_retries ${URL} ${DOWNLOAD_FILE} + mv ${DOWNLOAD_FILE} ${ET_DIST_DIR} +fi + +DEBIAN_FRONTEND=noninteractive dpkg -i "${ET_DIST_DIR}/${DOWNLOAD_FILE}" diff --git a/scripts/install.sh b/scripts/install.sh index 06e94f8..082876f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 2 October 2025 +# Updated : 12 November 2025 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -80,6 +80,7 @@ exitIfNotRoot # Install ETC applications ./install-et-api.sh ./install-et-aircraft.sh +./install-et-predict.sh # Install documentation tools ./install-dictionary.sh