domitcz: fix dzVents scripts
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 19 Sep 2017 19:13:44 +0000 (22:13 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Tue, 19 Sep 2017 22:00:41 +0000 (01:00 +0300)
commit476dae33c74e83bde8d14e4002df5c5a33a80268
treed7a2dfb97cf01910743699d39b32f46d0a54c5aa
parent3fcbbbf500cdbb1c8ca673ef37c2185aaa0c8711
domitcz: fix dzVents scripts

Domoticz 3.8153 introduced support for dzVents. Unfortunately this was
broken by the 902_add-scripts-path, which attempts to make Domoticz more
FHS-compliant instead of throwing everything under /opt/domoticz.

The problem is that dzVents scripts added via the webinterface will be
generated on the filesystem. With the 902_add-scripts-path patch,
Domoticz tried to write this to "scriptsdir/dzVents/generated_scripts".
As the scriptsdir contains scripts that come with upstream, and are not
meant to be changed, this defaults to /usr/share/domoticz/scripts, which
is not writeable, so Domoticz is unable to write the script to the
filesystem. What is worse is that this silently fails.

Fix this by moving the generated_scripts dir to
"userdatadir/generated_scripts". The userdatadir defaults to
/var/lib/domoticz, which is writeable.

Additionally, since this patch does more than just adding the scripts
path, rename it to something more appropriate.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
utils/domoticz/Makefile
utils/domoticz/files/domoticz.init
utils/domoticz/patches/902_add-scripts-path.patch [deleted file]
utils/domoticz/patches/902_disable-libusb.patch [new file with mode: 0644]
utils/domoticz/patches/903_disable-libusb.patch [deleted file]
utils/domoticz/patches/903_fhs.patch [new file with mode: 0644]