mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-17 10:06:12 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 49a122503e |
@@ -39,6 +39,7 @@ function update_script() {
|
|||||||
cp /opt/kometa/config/config.yml /opt
|
cp /opt/kometa/config/config.yml /opt
|
||||||
msg_ok "Backup completed"
|
msg_ok "Backup completed"
|
||||||
|
|
||||||
|
ensure_dependencies git
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa" "tarball"
|
fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa" "tarball"
|
||||||
|
|
||||||
|
|||||||
@@ -35,16 +35,6 @@ 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)"
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y git
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa" "tarball"
|
fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa" "tarball"
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ $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
|
||||||
@@ -26,11 +27,6 @@ $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