Browse Source

domoticz: removed hardcoded userdata path

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
lilik-openwrt-22.03
Stijn Tintel 8 years ago
parent
commit
ebc92cb98b
2 changed files with 7 additions and 6 deletions
  1. +1
    -1
      utils/domoticz/Makefile
  2. +6
    -5
      utils/domoticz/files/domoticz.init

+ 1
- 1
utils/domoticz/Makefile View File

@ -11,7 +11,7 @@ PKG_NAME:=domoticz
PKG_VERSION_MAJOR:=3 PKG_VERSION_MAJOR:=3
PKG_VERSION_PATCH:=5877 PKG_VERSION_PATCH:=5877
PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH) PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH)
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE) PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE)


+ 6
- 5
utils/domoticz/files/domoticz.init View File

@ -19,7 +19,12 @@ start_domoticz() {
[ -n "$loglevel" ] && procd_append_param command -loglevel "$loglevel" [ -n "$loglevel" ] && procd_append_param command -loglevel "$loglevel"
[ -n "$syslog" ] && procd_append_param command -syslog "$syslog" [ -n "$syslog" ] && procd_append_param command -syslog "$syslog"
[ -n "$userdata" ] && procd_append_param command -userdata "$userdata"
[ -n "$userdata" ] && {
mkdir -p "$userdata"
chmod 0770 "$userdata"
chown domoticz:domoticz "$userdata"
procd_append_param command -userdata "$userdata"
}
[ -n "$sslcert" -a "${sslwww:-0}" -gt 0 ] && { [ -n "$sslcert" -a "${sslwww:-0}" -gt 0 ] && {
procd_append_param command -sslcert "$sslcert" procd_append_param command -sslcert "$sslcert"
procd_append_param command -sslwww "$sslwww" procd_append_param command -sslwww "$sslwww"
@ -29,10 +34,6 @@ start_domoticz() {
} }
start_service() { start_service() {
mkdir -p /var/lib/domoticz
chmod 0770 /var/lib/domoticz
chown domoticz:domoticz /var/lib/domoticz
procd_open_instance procd_open_instance
procd_set_param command "$PROG" procd_set_param command "$PROG"


Loading…
Cancel
Save