mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 17:35:55 +01:00
Compare commits
1 Commits
fix/booklo
...
fix/dispat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b87e5ea7a |
@@ -34,7 +34,6 @@ function update_script() {
|
|||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
setup_yq
|
setup_yq
|
||||||
ensure_dependencies ffmpeg
|
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop booklore
|
systemctl stop booklore
|
||||||
|
|||||||
@@ -13,10 +13,6 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y ffmpeg
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
JAVA_VERSION="25" setup_java
|
JAVA_VERSION="25" setup_java
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
|
|||||||
@@ -4237,6 +4237,18 @@ NVIDIA_PIN
|
|||||||
# VA-API for hybrid setups (Intel + NVIDIA)
|
# VA-API for hybrid setups (Intel + NVIDIA)
|
||||||
$STD apt-get -y install va-driver-all vainfo 2>/dev/null || true
|
$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"
|
msg_ok "NVIDIA GPU configured"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user