mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-22 13:53:23 +08:00
Fail when hostname contains whitespace (#1894)
This commit is contained in:
parent
e7f8ee8ca8
commit
f58075eb62
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@ if [ -f "$HOME/.livebookdesktop.sh" ]; then
|
|||
. "$HOME/.livebookdesktop.sh"
|
||||
fi
|
||||
|
||||
hostname=`hostname`
|
||||
if [[ "$hostname" =~ " " ]]; then
|
||||
echo "[error] system hostname ($hostname) cannot contain whitespaces"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export RELEASE_NODE=livebook_app
|
||||
export RELEASE_MODE=interactive
|
||||
export MIX_ARCHIVES="${RELEASE_ROOT}/vendor/archives"
|
||||
|
|
Loading…
Reference in a new issue