-domoticz: Fixed Download URL -esphome: Disabled sudo pseudo-terminal while building -kavita: Fixed dailing with existing userdata in update script -nextcloud updated a php opcache setting
27 lines
1.0 KiB
Bash
27 lines
1.0 KiB
Bash
#!/bin/bash
|
|
#Get Resources
|
|
curl -L --retry 7 --retry-delay 5 https://releases.domoticz.com/release/domoticz_linux_x86_64.tgz -o "/opt/Setup/domoticz.tgz" || exit 1
|
|
|
|
#Adding service user
|
|
adduser --system --shell /bin/bash --group --disabled-password --home /home/domoticz domoticz
|
|
#Crating folders
|
|
mkdir /opt/domoticz /etc/domoticz
|
|
|
|
#Extracting aplication
|
|
tar -C /opt/domoticz -xf /opt/Setup/domoticz.tgz
|
|
rm -rf /opt/Setup/domoticz.tgz
|
|
|
|
#Installing custom theme
|
|
git clone https://git.bprieshof.nl/DarkTheme/dark-th3me-BrammpCustom.git /opt/domoticz/www/styles/dark-th3me-BrammpCustom
|
|
|
|
#Moving config in place
|
|
mv /opt/Setup/Configs/setupVars.conf /etc/domoticz/setupVars.conf
|
|
|
|
#Install service file and enable on boot
|
|
mv /opt/Setup/Configs/domoticz.service /etc/systemd/system/domoticz.service
|
|
chmod +x /etc/systemd/system/domoticz.service
|
|
ln -s /etc/systemd/system/domoticz.service /etc/systemd/system/multi-user.target.wants/domoticz.service
|
|
|
|
#Set permissions
|
|
chown -R domoticz:domoticz /opt/domoticz
|
|
chown -R domoticz:domoticz /etc/domoticz |