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 | |
|---|---|---|---|
| d1fb7befdc |
@@ -28,6 +28,14 @@ function update_script() {
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if grep -q '^ExecStop=/opt/keycloak/bin/kc.sh stop$' /etc/systemd/system/keycloak.service 2>/dev/null; then
|
||||
msg_info "Correcting Service"
|
||||
sed -i '/^ExecStop=\/opt\/keycloak\/bin\/kc.sh stop$/d' /etc/systemd/system/keycloak.service
|
||||
systemctl daemon-reload
|
||||
msg_ok "Corrected Service"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "keycloak_app" "keycloak/keycloak"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop keycloak
|
||||
|
||||
@@ -35,16 +35,6 @@ function update_script() {
|
||||
systemctl stop teslamate
|
||||
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"
|
||||
|
||||
msg_info "Building TeslaMate (Patience)"
|
||||
|
||||
@@ -39,7 +39,6 @@ Type=idle
|
||||
User=root
|
||||
WorkingDirectory=/opt/keycloak
|
||||
ExecStart=/opt/keycloak/bin/kc.sh start
|
||||
ExecStop=/opt/keycloak/bin/kc.sh stop
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment="JAVA_HOME=/usr/lib/jvm/temurin-21-jdk-$(arch_resolve)"
|
||||
|
||||
@@ -19,6 +19,7 @@ $STD apt install -y \
|
||||
erlang \
|
||||
erlang-dev \
|
||||
erlang-syntax-tools \
|
||||
elixir \
|
||||
mosquitto \
|
||||
locales
|
||||
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
|
||||
@@ -26,11 +27,6 @@ $STD locale-gen
|
||||
systemctl enable -q --now mosquitto
|
||||
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_DB_NAME="teslamate" PG_DB_USER="teslamate" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
Reference in New Issue
Block a user