mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Post R5 Build 4 fixes - Added download retry to et-aircraft-app
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 9 July 2025
|
# Date : 9 July 2025
|
||||||
|
# Updated : 20 August 2025
|
||||||
# Purpose : Install et-aircraft-app
|
# Purpose : Install et-aircraft-app
|
||||||
set -e
|
set -e
|
||||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||||
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
||||||
|
|
||||||
. ./env.sh
|
. ./env.sh
|
||||||
|
. ../overlay/opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
APP=et-aircraft-app
|
APP=et-aircraft-app
|
||||||
VERSION=1.0.0
|
VERSION=1.0.0
|
||||||
@@ -18,9 +20,7 @@ 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/et-aircraft-app/releases/download/${VERSION}/${DOWNLOAD_FILE}"
|
||||||
|
|
||||||
et-log "Downloading ${APP}: ${URL}"
|
download_with_retries ${URL} ${DOWNLOAD_FILE}
|
||||||
curl -s -L -o ${DOWNLOAD_FILE} --fail ${URL}
|
|
||||||
|
|
||||||
mv ${DOWNLOAD_FILE} ${ET_DIST_DIR}
|
mv ${DOWNLOAD_FILE} ${ET_DIST_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 13 August 2025
|
# Date : 13 August 2025
|
||||||
|
# Updated : 20 August 2025
|
||||||
# Purpose : Install EmComm Tools API
|
# Purpose : Install EmComm Tools API
|
||||||
set -e
|
set -e
|
||||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user