1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-10-16 13:50:46 +00:00

Add netcat-traditional and net-tools to install check

This commit is contained in:
kx1t 2024-06-15 23:14:19 -04:00 committed by GitHub
parent a44c35b66b
commit 2b1fe0f773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,16 +69,16 @@ fi
AUSSIEADSB_KEY="${AUSSIEADSB_KEY:-$2}" AUSSIEADSB_KEY="${AUSSIEADSB_KEY:-$2}"
if ! which jq >/dev/null 2>&1; then if ! which jq >/dev/null 2>&1 || ! which netcat || ! which ifconfig; then
echo "For registration to work, we need to do a one-time installation of JQ to your system" echo "For registration to work, we need to do a one-time installation of JQ, NetCat, and ifconfig to your system"
echo "Please be patient..." echo "Please be patient..."
if (( UID == 0 )); then if (( UID == 0 )); then
apt-get update -qq apt-get update -qq
apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -qq jq apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -qq jq netcat-traditional net-tools
else else
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -qq jq sudo apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -qq jq netcat-traditional net-tools
fi fi
echo "" echo ""
echo "" echo ""