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