kopia lustrzana https://github.com/jprochazka/adsb-receiver
Fixes to PiAware installer.
rodzic
9b9a7c7d47
commit
87d6bb64f8
|
|
@ -2,5 +2,6 @@ EXTRAS_CHOICES
|
|||
FEEDER_CHOICES
|
||||
build/dump1090*
|
||||
build/dump978*
|
||||
build/piaware_builder/
|
||||
build/package-archive
|
||||
logs/
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ clear
|
|||
LogProjectTitle
|
||||
LogTitleHeading "Setting up the FlightAware PiAware client"
|
||||
LogTitleMessage "------------------------------------------------------------------------------"
|
||||
echo ""
|
||||
if ! whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" \
|
||||
--title "FlightAware PiAware client Setup" \
|
||||
--yesno "The FlightAware PiAware client takes data from a local dump1090 instance and shares this with FlightAware using the piaware package, for more information please see their website:\n\n https://www.flightaware.com/adsb/piaware/\n\nContinue setup by installing the FlightAware PiAware client?" \
|
||||
13 78; then
|
||||
echo ""
|
||||
LogAlertHeading "INSTALLATION HALTED"
|
||||
LogAlertMessage "Setup has been halted at the request of the user"
|
||||
echo ""
|
||||
|
|
@ -167,9 +167,8 @@ else
|
|||
cd $RECEIVER_BUILD_DIRECTORY
|
||||
LogMessage "Cloning the piaware_builder git repository locally"
|
||||
echo ""
|
||||
git clone https://github.com/flightaware/dump978.git 2>&1 | tee -a $RECEIVER_LOG_FILE
|
||||
git clone https://github.com/flightaware/piaware_builder.git 2>&1 | tee -a $RECEIVER_LOG_FILE
|
||||
fi
|
||||
echo ""
|
||||
|
||||
|
||||
## BUILD AND INSTALL THE PIAWARE CLIENT PACKAGE
|
||||
|
|
|
|||
|
|
@ -245,12 +245,8 @@ fi
|
|||
|
||||
# Check for the PiAware package.
|
||||
if [[ $(dpkg-query -W -f='${STATUS}' piaware 2>/dev/null | grep -c "ok installed") -eq 0 ]]; then
|
||||
# Do not show the PiAware install option if the FlightAware fork of dump1090 has been chosen.
|
||||
if [[ "${DUMP1090_FORK}" != "fa" ]] ; then
|
||||
if [[ -z "${PIAWARE_INSTALL}" && "${PIAWARE_INSTALL}" = "true" ]]; then
|
||||
echo "FlightAware PiAware" >> ${RECEIVER_ROOT_DIRECTORY}/FEEDER_CHOICES
|
||||
fi
|
||||
fi
|
||||
# The OpenSky Network feeder package appears to not be installed.
|
||||
FEEDER_LIST=("${FEEDER_LIST[@]}" 'FlightAware PiAware' '' OFF)
|
||||
else
|
||||
# Check if a newer version can be installed.
|
||||
if [[ $(sudo dpkg -s piaware 2>/dev/null | grep -c "Version: ${PIAWARE_VERSION}") -eq 0 ]]; then
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue