From 5871cdbe5b6fdf3132fd53146c0d658458408df8 Mon Sep 17 00:00:00 2001 From: Daniel Kukula Date: Sun, 17 Aug 2025 08:29:29 +0200 Subject: [PATCH] export path --- install/livebook-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/livebook-install.sh b/install/livebook-install.sh index 84db422b..1ee98818 100644 --- a/install/livebook-install.sh +++ b/install/livebook-install.sh @@ -32,10 +32,6 @@ curl -fsSO https://elixir-lang.org/install.sh $STD sh install.sh elixir@latest otp@latest RELEASE=$(curl -fsSL https://api.github.com/repos/livebook-dev/livebook/releases/latest | grep "tag_name" | awk -F'"' '{print $4}') -$STD mix local.hex --force -$STD mix local.rebar --force -$STD mix escript.install hex livebook --force - # Get the actual installed versions from directory names ERLANG_VERSION=$(ls /opt/.elixir-install/installs/otp/ | head -n1) ELIXIR_VERSION=$(ls /opt/.elixir-install/installs/elixir/ | head -n1) @@ -43,6 +39,11 @@ ELIXIR_VERSION=$(ls /opt/.elixir-install/installs/elixir/ | head -n1) # TODO remove echo "Found Erlang version: $ERLANG_VERSION" echo "Found Elixir version: $ELIXIR_VERSION" +export PATH="\$ERLANG_BIN:\$ELIXIR_BIN:\$PATH" + +$STD mix local.hex --force +$STD mix local.rebar --force +$STD mix escript.install hex livebook --force # Create .env file with all environment variables cat < /opt/.env @@ -63,7 +64,6 @@ EOF msg_ok "Installed Erlang $ERLANG_VERSION and Elixir $ELIXIR_VERSION" msg_info "Installing Livebook" - cat </etc/systemd/system/livebook.service [Unit] Description=Livebook