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:
parent
a44c35b66b
commit
2b1fe0f773
1 changed files with 4 additions and 4 deletions
|
@ -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 ""
|
||||||
|
|
Loading…
Reference in a new issue