finalize livebook
This commit is contained in:
parent
acbaa7ce7d
commit
ffe61d7590
@ -30,23 +30,24 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "livebook" "livebook-dev/livebook"; then
|
||||
msg_info "Stopping ${APP}"
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop livebook
|
||||
msg_info "Service stopped"
|
||||
msg_info "Stopped Service"
|
||||
|
||||
msg_info "Updating container"
|
||||
$STD apt-get update
|
||||
$STD apt-get -y upgrade
|
||||
msg_ok "Updated container"
|
||||
msg_info "Updating Container"
|
||||
$STD apt update
|
||||
$STD apt upgrade -y
|
||||
msg_ok "Updated Container"
|
||||
|
||||
msg_info "Updating ${APP}"
|
||||
msg_info "Updating Livebook"
|
||||
source /opt/livebook/.env
|
||||
cd /opt/livebook
|
||||
$STD mix escript.install hex livebook --force
|
||||
|
||||
chown -R livebook:livebook /opt/livebook /data
|
||||
systemctl start livebook
|
||||
msg_ok "Updated ${APP}"
|
||||
msg_ok "Updated Livebook"
|
||||
msg_ok "Updated Successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
@ -28,7 +28,6 @@ export HOME=/opt/livebook
|
||||
$STD adduser --system --group --home /opt/livebook --shell /bin/bash livebook
|
||||
msg_ok "Created livebook user"
|
||||
|
||||
|
||||
msg_warn "WARNING: This script will run an external installer from a third-party source (https://elixir-lang.org)."
|
||||
msg_warn "The following code is NOT maintained or audited by our repository."
|
||||
msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:"
|
||||
@ -39,7 +38,8 @@ if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
|
||||
msg_error "Aborted by user. No changes have been made."
|
||||
exit 10
|
||||
fi
|
||||
bash <(curl -sL https://elixir-lang.org/install.sh)
|
||||
curl -fsSO https://elixir-lang.org/install.sh
|
||||
$STD sh install.sh elixir@latest otp@latest
|
||||
|
||||
msg_info "Setup Erlang and Elixir"
|
||||
ERLANG_VERSION=$(ls /opt/livebook/.elixir-install/installs/otp/ | head -n1)
|
||||
@ -100,6 +100,7 @@ motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning Up"
|
||||
$STD apt-get autoremove -y
|
||||
$STD apt-get autoclean
|
||||
$STD apt autoremove -y
|
||||
$STD apt autoclean -y
|
||||
$STD apt clean -y
|
||||
msg_ok "Cleaned Up"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user