eclipse / amlen

Message Broker for IoT/Mobile/Web. Mainly uses MQTT v3.x and v5. Aims to be easy to use, scalable and reliable
Eclipse Public License 2.0
46 stars 11 forks source link

[patch] Cope with java not being in path during post-install by guessing java path #151

Closed jonquark closed 9 months ago

jonquark commented 9 months ago

This is a bit hacky. If there is no JVM on the system and a JVM and amlen-webui are installed in the same rpm transaction, then on RHEL8 systems, that JVM is often not the default JVM for the system (i.e. /usr/bin/java is not a symlink to it) during the post install phase of the transaction.

I /think/ this is a bug in the rpm at this vintage - but we would around it by - if no java is in the path when we wanting to use it - dumping to our log some interesting directories and then explicitly setting a path to the JVM we have pre-reqd.