From cd1f56b647bd80a164c0f54ca13f7e1236b2be06 Mon Sep 17 00:00:00 2001 From: Beeranco <49772805+Beeranco@users.noreply.github.com> Date: Sat, 12 Aug 2023 04:45:26 +0200 Subject: [PATCH] Update Installer.sh Optimized installer speed by installing Domoticz last --- Installer.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Installer.sh b/Installer.sh index e4c37f9..e3abb95 100644 --- a/Installer.sh +++ b/Installer.sh @@ -162,19 +162,6 @@ apt autoremove -y # Installer # ##-------------## -if [[ $OPTIONS == *"Domoticz"* ]]; then - mkdir -p /etc/domoticz/ - wget $GIT/$REPO/$BRANCH/Domoticz/DomoSetup.conf -O /etc/domoticz/setupVars.conf - - mkdir -p /opt/domoticz/ - bash -c "$(curl -sSfL https://install.domoticz.com)" - - wget $GIT/$REPO/$BRANCH/Domoticz/DomoService.conf -O /etc/init.d/domoticz.sh - chmod +x /etc/init.d/domoticz.sh - update-rc.d domoticz.sh defaults - systemctl start domoticz -fi - if [[ $OPTIONS == *"Node-RED"* ]]; then bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --confirm-root --confirm-install --skip-pi --node18 --no-init systemctl enable nodered @@ -207,6 +194,19 @@ if [[ $OPTIONS == *"Unattended-Upgrades"* ]]; then wget $GIT/$REPO/$BRANCH/Unattended-Security-Updates/50debian-unattended-upgrades -O /etc/apt/apt.conf.d/50unattended-upgrades fi +if [[ $OPTIONS == *"Domoticz"* ]]; then + mkdir -p /etc/domoticz/ + wget $GIT/$REPO/$BRANCH/Domoticz/DomoSetup.conf -O /etc/domoticz/setupVars.conf + + mkdir -p /opt/domoticz/ + bash -c "$(curl -sSfL https://install.domoticz.com)" + + wget $GIT/$REPO/$BRANCH/Domoticz/DomoService.conf -O /etc/init.d/domoticz.sh + chmod +x /etc/init.d/domoticz.sh + update-rc.d domoticz.sh defaults + systemctl start domoticz +fi + ##--------------## # Store Vars #