Update Installer.sh
Optimized installer speed by installing Domoticz last
This commit is contained in:
parent
03c65d198e
commit
cd1f56b647
26
Installer.sh
26
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 #
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user