Closed dumbbell closed 2 years ago
@Mergifyio backport v3.11.x
@Mergifyio backport v3.11.x
backport v3.11.x
@Mergifyio v3.10.x v3.9.x
Sorry but I didn't understand the command. Please consult the commands documentation 📚.
@Mergifyio backport v3.10.x v3.9.x
backport v3.10.x v3.9.x
The value was set from a register set after reading the Erlang install path from the Registry.
However, as part of #22, I rewrote how we detect the version of Erlang. While doing this, I used regular variables instead of registers to improve the readability and make sure the code doesn't break because a future change overwrites a register.
This is exactly what happened here: I didn't see the
$0
register was used later in the same function. In #22, I stored the Erlang install path in a variable and used the register for temporary storage in several loops. At the time we want to set$ERLANG_HOME
, the register holds a file descriptor integer which is meaningless.As a consequence, the RabbitMQ service fails to be installed and started as part of the installer process. After the install, RabbitMQ CLI tools fail to run. All because
$ERLANG_HOME
is incorrectly set.This patch uses the
$erlang_otp_dir
variable to correctly set$ERLANG_HOME
. This should be future-proof this time.