hm2mqtt icon indicating copy to clipboard operation
hm2mqtt copied to clipboard

for latest version of RaspMatic: java path in rc.d/hm2mqtt incorrect

Open promd opened this issue 7 years ago • 2 comments

I found the assumed Java path to be non-existing. Changing it to "/opt/java-azul/bin/java" did fix the issue (local).

promd avatar Jan 01 '17 15:01 promd

I can confirm this for RaspberryMatic-2.27.7.20170316.

In /usr/local/etc/config/rc.d/hm2mqtt I changed the path to

if [ -x "/opt/java/bin/java" ]; then
  JAVA_BIN=/opt/java/bin/java

/opt/java is a symbolic link to /opt/java-azul

nanosonde avatar Mar 23 '17 06:03 nanosonde

I've change it to take the first java in opt, because for the latest version of CCU2 it is different as well: JAVA_BIN=find /opt -name java|head -n 1

irrisor avatar Oct 28 '17 09:10 irrisor