mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-09 08:27:36 +08:00
9 lines
460 B
Elixir
9 lines
460 B
Elixir
export RELEASE_NODE=${LIVEBOOK_NODE:-${RELEASE_NODE:-livebook_server}}
|
|
export RELEASE_DISTRIBUTION=${LIVEBOOK_DISTRIBUTION:-${RELEASE_DISTRIBUTION:-sname}}
|
|
export RELEASE_MODE=interactive
|
|
|
|
cookie_path="${RELEASE_ROOT}/releases/COOKIE"
|
|
if [ ! -f $cookie_path ] && [ -z "$RELEASE_COOKIE" ]; then
|
|
RELEASE_COOKIE=$(cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
|
echo "$RELEASE_COOKIE" > "$cookie_path" || export RELEASE_COOKIE
|
|
fi
|