Compare commits

...

2 Commits

Author SHA1 Message Date
tteckster ace4a8e43f
Update build.func
fixes https://github.com/tteck/Proxmox/issues/2894
2024-05-01 14:38:15 -04:00
tteckster adb7bc55f4
Update nextcloudpi.sh
Default Debian 12
2024-05-01 14:16:32 -04:00
2 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,7 @@ var_disk="8"
var_cpu="2"
var_ram="2048"
var_os="debian"
var_version="11"
var_version="12"
variables
color
catch_errors

View File

@ -595,18 +595,20 @@ EOF
fi
else
if [[ "$APP" == "Channels" || "$APP" == "Emby" || "$APP" == "Frigate" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Scrypted" || "$APP" == "Tdarr" || "$APP" == "Unmanic" ]]; then
if [[ -e "/dev/dri/card0" ]]; then
if [[ -e "/dev/dri/renderD128" ]]; then
if [[ -e "/dev/dri/card0" ]]; then
cat <<EOF >>$LXC_CONFIG
# VAAPI hardware transcoding
dev0: /dev/dri/card0,gid=44
dev1: /dev/dri/renderD128,gid=104
EOF
else
else
cat <<EOF >>$LXC_CONFIG
# VAAPI hardware transcoding
dev0: /dev/dri/card1,gid=44
dev1: /dev/dri/renderD128,gid=104
EOF
fi
fi
fi
fi