Added domoticz ct
This commit is contained in:
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Domoticz Home Automation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww 0 -syslog
|
||||
Username=domoticz
|
||||
Group=domoticz
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
Dest_folder=/opt/domoticz
|
||||
Enable_http=true
|
||||
HTTP_port=8080
|
||||
Enable_https=false
|
||||
HTTPS_port=443
|
||||
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
#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
|
||||
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
Binary file not shown.
Reference in New Issue
Block a user