Update 'Installer.sh'

Removed redundant echo's for curl to install while this is already a pre-requirement installed before the script runs.
This commit is contained in:
b.waal 2023-09-04 23:32:57 +02:00
parent aaa748a758
commit 0cd6f11d88

View File

@ -42,7 +42,7 @@ GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw
# Dependencies #
##---------------##
$PKGI curl wget whiptail
$PKGI curl wget whiptail sudo
##----------------------------##
@ -208,15 +208,15 @@ systemctl disable ModemManager
echo "python3-dev python3-pip" >> /tmp/install.list
if [[ $OPTIONS == *"Domoticz"* ]]; then
echo "apt-utils git curl unzip wget sudo cron libudev-dev libsqlite3-0 libcurl4 libusb-0.1-4" >> /tmp/install.list
echo "apt-utils git unzip cron libudev-dev libsqlite3-0 libcurl4 libusb-0.1-4" >> /tmp/install.list
fi
if [[ $OPTIONS == *"Node-RED"* ]]; then
echo "build-essential git curl mosquitto mosquitto-clients" >> /tmp/install.list
echo "build-essential git mosquitto mosquitto-clients" >> /tmp/install.list
fi
if [[ $OPTIONS == *"Zigbee2MQTT"* ]]; then
echo "git make g++ gcc mosquitto mosquitto-clients" >> /tmp/install.list
if [[ $OPTIONS != *"Node-RED"* ]]; then
echo "ca-certificates curl gnupg nodejs" >> /tmp/install.list
echo "ca-certificates gnupg nodejs" >> /tmp/install.list
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
fi
@ -238,6 +238,7 @@ sleep 3
$PKGUD
apt list --upgradeable 2>/dev/null | cut -d/ -f1 | grep -v Listing >> /tmp/install.list
echo "ufw" >> /tmp/install.list
#Tools required to build and compile rsync 3.2.7.
echo "gcc g++ gawk autoconf automake python3-cmarkgfm libssl-dev attr libxxhash-dev libattr1-dev liblz4-dev libzstd-dev acl libacl1-dev" >> /tmp/install.list
xargs < /tmp/install.list xargs $PKGI