mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-27 19:07:49 +03:00
Compare commits
3 Commits
fix/dispat
...
fix/booklo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a2a769307 | ||
|
|
1652431954 | ||
|
|
77c5c398a1 |
@@ -34,6 +34,7 @@ function update_script() {
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
setup_mariadb
|
||||
setup_yq
|
||||
ensure_dependencies ffmpeg
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop booklore
|
||||
|
||||
@@ -13,6 +13,10 @@ setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y ffmpeg
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
JAVA_VERSION="25" setup_java
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
setup_mariadb
|
||||
|
||||
@@ -4237,18 +4237,6 @@ NVIDIA_PIN
|
||||
# VA-API for hybrid setups (Intel + NVIDIA)
|
||||
$STD apt-get -y install va-driver-all vainfo 2>/dev/null || true
|
||||
|
||||
# Fix GLX alternatives: nvidia-alternative diverts mesa libs but in LXC
|
||||
# containers the nvidia GLX libs are typically missing, leaving libGL.so.1
|
||||
# pointing nowhere. Fall back to mesa if nvidia GLX dir is empty/missing.
|
||||
if command -v update-glx &>/dev/null; then
|
||||
local nvidia_glx_dir="/usr/lib/nvidia"
|
||||
if [[ ! -f "${nvidia_glx_dir}/libGL.so.1" ]] && [[ -d /usr/lib/mesa-diverted ]]; then
|
||||
msg_info "NVIDIA GLX libs missing in container - falling back to mesa"
|
||||
$STD update-glx --set glx /usr/lib/mesa-diverted 2>/dev/null || true
|
||||
ldconfig 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
msg_ok "NVIDIA GPU configured"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user