-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
erts_vsn inside ejabberdctl never gets set #4194
Comments
That variable was added in 94a733c. The variable is set and used when building an OTP release; but it is useless when using other install methods. If ejabberd is built into an OTP release with: ./configure --with-rebar=rebar3
# or ./configure --with-rebar=mix
make
make prod
# or make dev then the file ERTS_VSN="14.2.3"
ERL="${SCRIPT_DIR%/*}/erts-${ERTS_VSN#erts-}/bin/erl"
EPMD="${SCRIPT_DIR%/*}/erts-${ERTS_VSN#erts-}/bin/epmd" This is also the case in the RUN, DEB and RPM binary installers from ProcessOne, as they use OTP release method. And the container images too. However, when using ERTS_VSN="{{erts_vsn}}"
ERL="/home/badlop/.asdf/shims/erl"
EPMD="/home/badlop/.asdf/shims/epmd" How do you obtain that ejabberdctl script? Did you use In your script, as you can see, ERTS_VSN is not used, so it isn't a problem for the script that the variable isn't set. If there is another tool that detects this and complains, you could try to remove that variable definition. |
Hi! What do you think about omitting the variable if it doesn't get set by not building from the OTP? |
That variable is not used in "make relive" and "make install", so let's comment the variable in ejabberdctl when preparing that file for those targets.
Right, it's easy in Makefile.in to comment that line when it isn't needed. It will be fixed in the next release. |
Environment
Bug description
I'm not sure if this is a bug or not, but I have noticed that inside
ejabberdctl
script on all of our deployments only theerts_vsn
variable never gets set. This usually wouldn't be the problem, but we're trying to manageejabberdctl
ourselves for now because of this issue and this is causing Ansible to throwAnsibleUndefinedVariable: 'erts_vsn' is undefined"
errors.Example how it looks:
Does anyone know why this is happening and what's
erts_vsn
used for?The text was updated successfully, but these errors were encountered: