From 49b917a39789b3d15baaad43509870229824c32e Mon Sep 17 00:00:00 2001 From: Beeranco <49772805+Beeranco@users.noreply.github.com> Date: Sat, 12 Aug 2023 04:04:57 +0200 Subject: [PATCH] Update Installer.sh Added IP addresses and Ports for installed packages --- Installer.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Installer.sh b/Installer.sh index cfdb84d..e4c37f9 100644 --- a/Installer.sh +++ b/Installer.sh @@ -220,9 +220,22 @@ sed -i 's/\"//g' /etc/installedmodules # Finishing # ##-------------## +IP=`hostname -I` +IP=$(echo $IP | tr -d ' ') + wget $GIT/$REPO/$BRANCH/Updater.sh -O /opt/updater.sh wget $GIT/$REPO/$BRANCH/MOTD/greetings.sh -O /etc/profile.d/greeting.sh sed -i -e "s/%name%/$NAME/g" /etc/profile.d/greeting.sh +if grep -q Domoticz "/etc/installedmodules"; then + whiptail --title "Remember" --msgbox "After a reboot Domoticz is accessible on:\nhttp://$IP:8080" 8 78 +fi +if grep -q Node-RED "/etc/installedmodules"; then + whiptail --title "Remember" --msgbox "After a reboot Node-RED is accessible on:\nhttp://$IP:1880" 8 78 +fi +if grep -q Zigbee2MQTT "/etc/installedmodules"; then + whiptail --title "Remember" --msgbox "After a reboot Zigbee2MQTT is accessible on:\nhttp://$IP:5002" 8 78 +fi + whiptail --title "Done!" --msgbox "Please insert the Zigbee Dongle into a USB 2.0 port. Hit OK to continue." 8 78 reboot