Update 'Installer.sh'
Updated repository for nodejs since older install methods are soon to be deprecated. Added more bloat removal
This commit is contained in:
parent
14cfd5e2bd
commit
aaa748a758
10
Installer.sh
10
Installer.sh
@ -10,7 +10,7 @@ SKIPoptions=yes
|
||||
SKIPhomer=yes
|
||||
|
||||
if [[ $SKIPoptions == "yes" ]]; then
|
||||
OPTIONS='"Domoticz" "Zigbee2MQTT" "Unattended-Upgrades" "Monitor-Service" "Homer"'
|
||||
OPTIONS='"Domoticz" "Node-RED" "Zigbee2MQTT" "Unattended-Upgrades" "Monitor-Service" "Homer"'
|
||||
fi
|
||||
if [[ $SKIPhomer == "yes" ]]; then
|
||||
ISP=Ziggo
|
||||
@ -23,6 +23,7 @@ fi
|
||||
##---------------##
|
||||
|
||||
OUTPUT='/dev/null'
|
||||
NODE_MAJOR=18
|
||||
APTMODE="debconf-apt-progress -- apt"
|
||||
PKGM="$APTMODE"
|
||||
PKGUD="$PKGM update"
|
||||
@ -215,8 +216,9 @@ fi
|
||||
if [[ $OPTIONS == *"Zigbee2MQTT"* ]]; then
|
||||
echo "git make g++ gcc mosquitto mosquitto-clients" >> /tmp/install.list
|
||||
if [[ $OPTIONS != *"Node-RED"* ]]; then
|
||||
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
||||
echo "nodejs" >> /tmp/install.list
|
||||
echo "ca-certificates curl 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
|
||||
fi
|
||||
if [[ $OPTIONS == *"Unattended-Upgrades"* ]]; then
|
||||
@ -481,7 +483,7 @@ sed -i 's/\"//g' /etc/installedmodules
|
||||
TERM=ansi whiptail --title "Pi Automation" --infobox "Cleaning up unnecessary packages." 8 78
|
||||
sleep 3
|
||||
|
||||
$PKRM dphys-swapfile* manpages* p7zip* vim* pigz* strace* rng-tools* manpages* triggerhappy* gawk python3-cmarkgfm attr libxxhash-dev libattr1-dev liblz4-dev libzstd-dev acl libacl1-dev
|
||||
$PKRM dphys-swapfile* manpages* p7zip* vim* pigz* strace* rng-tools* manpages* triggerhappy* libcamera* libx11* libboost* mkvtoolnix* libmagic* raspi-gpio mailcap bzip2 libxext6 dc ntfs-3g ncdu ed python3-numpy python3-spidev python3-rpi.gpio python3-cmarkgfm python3-toml python3-colorzero python3-chardet gcc g++ gawk autoconf automake libssl-dev attr libxxhash-dev libattr1-dev liblz4-dev libzstd-dev acl libacl1-dev
|
||||
$PKARM
|
||||
|
||||
##-------------##
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user