mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Container: When ERLANG_COOKIE is set, create cookie file; otherwise use -setcookie
This commit is contained in:
parent
b0db87c683
commit
9c23a7dc3f
1 changed files with 2 additions and 1 deletions
3
.github/container/ejabberdctl.template
vendored
3
.github/container/ejabberdctl.template
vendored
|
@ -17,7 +17,8 @@ ERTS_VSN="{{erts_vsn}}"
|
||||||
ERL="{{erl}}"
|
ERL="{{erl}}"
|
||||||
IEX="{{bindir}}/iex"
|
IEX="{{bindir}}/iex"
|
||||||
EPMD="{{epmd}}"
|
EPMD="{{epmd}}"
|
||||||
INSTALLUSER="{{installuser}}"
|
[ -z "$ERLANG_COOKIE" ] && ERL_OPTIONS="-setcookie $(cat "${SCRIPT_DIR%/*}/releases/COOKIE")"
|
||||||
|
[ -n "$ERLANG_COOKIE" ] && [ ! -f "$HOME"/.erlang.cookie ] && echo "$ERLANG_COOKIE" > "$HOME"/.erlang.cookie && chmod 400 "$HOME"/.erlang.cookie
|
||||||
|
|
||||||
# check the proper system user is used
|
# check the proper system user is used
|
||||||
case $(id -un) in
|
case $(id -un) in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue