diff --git a/CHANGELOG.md b/CHANGELOG.md index 3997f77..ee61e30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The following is a history of the changes made to this project. ### Installers +* Added the option to install the ADS-B Exchange stats package after feeder installation. +* Added the option to install the ADS-B Exchange web interface after feeder installation. * Added support for Ubuntu Jammy Jellyfish. * Added support for Ubuntu Focal Fossa. * Added support for DietPi Bookworm. diff --git a/bash/feeders/adsbexchange.sh b/bash/feeders/adsbexchange.sh index a023235..08d3ace 100755 --- a/bash/feeders/adsbexchange.sh +++ b/bash/feeders/adsbexchange.sh @@ -92,6 +92,33 @@ chmod -x ${RECEIVER_BUILD_DIRECTORY}/adsbexchange/feed-${ACTION_TO_PERFORM}.sh echo -e "\e[94m Executing the ${ACTION_TO_PERFORM} script...\e[97m" echo "" sudo bash ${RECEIVER_BUILD_DIRECTORY}/adsbexchange/feed-${ACTION_TO_PERFORM}.sh +echo "" + +## INSTALL THE ADS-B EXCHANGE STATS PACKAGE + +if whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "ADS-B Exchange Feed Setup" --yesno "ADS-B Exchange offers the option to install their stats package in order to send your stats to their site.\n\nWould you like to install the stats package now?" 12 78; then + echo -e "\e[95m Executing the ADS-B Exchange script to install their web interface...\e[97m" + echo "" + echo -e "\e[94m Downloading the stats package installation script...\e[97m" + echo "" + curl -L -o ${RECEIVER_BUILD_DIRECTORY}/adsbexchange/axstats.sh https://adsbexchange.com/stats.sh + echo "" + echo -e "\e[94m Executing the stats package installation script...\e[97m" + echo "" + sudo bash ${RECEIVER_BUILD_DIRECTORY}/adsbexchange/axstats.sh + echo "" +fi + +## INSTALL THE ADS-B EXCHANGE WEB INTERFACE + +if whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "ADS-B Exchange Feed Setup" --yesno "ADS-B Exchange offers the option to install an additional web interface.\n\nWould you like to install the web interface now?" 12 78; then + echo -e "\e[95m Executing the ADS-B Exchange script to install their web interface...\e[97m" + echo "" + echo -e "\e[94m Executing the ADS-B Exchange web interface installation script...\e[97m" + echo "" + sudo bash /usr/local/share/adsbexchange/git/install-or-update-interface.sh + echo "" +fi ## ADS-B EXCHANGE FEED SETUP COMPLETE