Skip to content

Commit

Permalink
ejabberdctl.template: Handle erts versions 9 o lower
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jan 12, 2025
1 parent 51f982f commit 33ca118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/container/ejabberdctl.template
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ help()

# dynamic node name helper
uid() {
ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.*\([0-9][0-9]\).*|\1|g')"
ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.* \([0-9]*[0-9]\).*|\1|g')"
if [ $ERTSVERSION -lt 11 ] ; then # otp 23.0 includes erts 11.0
# Erlang/OTP lower than 23, which doesn's support dynamic node code
N=1
Expand Down
2 changes: 1 addition & 1 deletion ejabberdctl.template
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ help()

# dynamic node name helper
uid() {
ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.*\([0-9][0-9]\).*|\1|g')"
ERTSVERSION="$("$ERL" -version 2>&1 | sed 's|.* \([0-9]*[0-9]\).*|\1|g')"
if [ $ERTSVERSION -lt 11 ] ; then # otp 23.0 includes erts 11.0
# Erlang/OTP lower than 23, which doesn's support dynamic node code
N=1
Expand Down

0 comments on commit 33ca118

Please sign in to comment.