Update 'Installer.sh'

Disabled Test Var.
Added Mosquitto config to allow connections outside of the localhost.
This commit is contained in:
b.waal 2023-09-18 01:51:03 +02:00
parent 1737bf609d
commit 8092d67c2e

View File

@ -8,7 +8,7 @@ AGREE=no
SKIPinfo=no
SKIPoptions=no
SKIPhomer=no
Timer=yes
Timer=no
if [[ $SKIPoptions == "yes" ]]; then
OPTIONS='"Domoticz" "Zigbee2MQTT" "Unattended-Upgrades" "Monitor-Service" "Homer"'
@ -409,6 +409,15 @@ fi
ufw limit 22/tcp
echo "y" | ufw enable
if systemctl --all --type service | grep -q mosquitto.service;then
TERM=ansi whiptail --title "Pi Automation" --infobox "Configuring MQTT." 8 78
sleep 3
systemctl stop mosquitto
mkdir -p /var/lib/mosquitto
wget $GIT/$BRANCH/Mosquitto/mosquitto.conf -O /etc/mosquitto/mosquitto.conf
fi
if [[ $OPTIONS == *"Unattended-Upgrades"* ]]; then
TERM=ansi whiptail --title "Pi Automation" --infobox "Configuring Unattended-Upgrades." 8 78
sleep 3