From 8092d67c2e8a3b69fb199130fe5be7d7620f93e0 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Mon, 18 Sep 2023 01:51:03 +0200 Subject: [PATCH] Update 'Installer.sh' Disabled Test Var. Added Mosquitto config to allow connections outside of the localhost. --- Installer.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Installer.sh b/Installer.sh index d18a502..93dd85f 100644 --- a/Installer.sh +++ b/Installer.sh @@ -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