mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-06 15:07:52 +08:00
13 lines
593 B
Elixir
13 lines
593 B
Elixir
if defined LIVEBOOK_NODE set RELEASE_NODE="!LIVEBOOK_NODE!"
|
|
if not defined RELEASE_NODE set RELEASE_NODE=livebook_server
|
|
if defined LIVEBOOK_DISTRIBUTION set RELEASE_DISTRIBUTION="!LIVEBOOK_DISTRIBUTION!"
|
|
set RELEASE_MODE=interactive
|
|
|
|
set cookie_path="!RELEASE_ROOT!\releases\COOKIE"
|
|
if not exist %cookie_path% (
|
|
if not defined RELEASE_COOKIE (
|
|
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
|
|
:: '| set /p=""' is so that we don't add ' \r\n' to the cookie
|
|
echo | set /p="cookie-!TIMESTAMP:~0,11!-!RANDOM!" > %cookie_path%
|
|
)
|
|
)
|