mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-12 09:57:24 +02:00
teslamate: use precompiled Elixir (#16561)
This commit is contained in:
committed by
GitHub
parent
7d7db6dd33
commit
ee06ad86f1
@@ -35,6 +35,16 @@ function update_script() {
|
|||||||
systemctl stop teslamate
|
systemctl stop teslamate
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
if [[ ! -d /opt/elixir ]]; then
|
||||||
|
msg_info "Migrating to newer Elixir (required by TeslaMate)"
|
||||||
|
$STD apt remove -y elixir
|
||||||
|
fetch_and_deploy_gh_release "elixir" "elixir-lang/elixir" "prebuild" "latest" "/opt/elixir" "elixir-otp-27.zip"
|
||||||
|
for bin in elixir elixirc iex mix; do
|
||||||
|
ln -sf "/opt/elixir/bin/$bin" "/usr/local/bin/$bin"
|
||||||
|
done
|
||||||
|
msg_ok "Migrated to newer Elixir"
|
||||||
|
fi
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "teslamate" "teslamate-org/teslamate" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "teslamate" "teslamate-org/teslamate" "tarball"
|
||||||
|
|
||||||
msg_info "Building TeslaMate (Patience)"
|
msg_info "Building TeslaMate (Patience)"
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ $STD apt install -y \
|
|||||||
erlang \
|
erlang \
|
||||||
erlang-dev \
|
erlang-dev \
|
||||||
erlang-syntax-tools \
|
erlang-syntax-tools \
|
||||||
elixir \
|
|
||||||
mosquitto \
|
mosquitto \
|
||||||
locales
|
locales
|
||||||
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
|
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
|
||||||
@@ -27,6 +26,11 @@ $STD locale-gen
|
|||||||
systemctl enable -q --now mosquitto
|
systemctl enable -q --now mosquitto
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "elixir" "elixir-lang/elixir" "prebuild" "latest" "/opt/elixir" "elixir-otp-27.zip"
|
||||||
|
for bin in elixir elixirc iex mix; do
|
||||||
|
ln -sf "/opt/elixir/bin/$bin" "/usr/local/bin/$bin"
|
||||||
|
done
|
||||||
|
|
||||||
PG_VERSION="17" setup_postgresql
|
PG_VERSION="17" setup_postgresql
|
||||||
PG_DB_NAME="teslamate" PG_DB_USER="teslamate" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
PG_DB_NAME="teslamate" PG_DB_USER="teslamate" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|||||||
Reference in New Issue
Block a user