From 58909e197a2005c066155d2b9334df04d31d6f46 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 14 May 2023 11:43:17 -0400 Subject: [PATCH] Update build.func add Tdarr to Hardware Acceleration Support --- misc/build.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 115ba768..2aac2b0a 100644 --- a/misc/build.func +++ b/misc/build.func @@ -467,6 +467,7 @@ build_container() { export VERBOSE="$VERB" export SSH_ROOT="${SSH}" export CTID="$CT_ID" + export CTTYPE="$CT_TYPE" export PCT_OSTYPE="$var_os" export PCT_OSVERSION="$var_version" export PCT_DISK_SIZE="$DISK_SIZE" @@ -487,7 +488,7 @@ build_container() { LXC_CONFIG=/etc/pve/lxc/${CTID}.conf if [ "$CT_TYPE" == "0" ]; then - if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" ]]; then + if [[ "$APP" != "Emby" && "$APP" != "Jellyfin" && "$APP" != "Plex" && "$APP" != "Tdarr" ]]; then cat <>$LXC_CONFIG lxc.cgroup2.devices.allow: a lxc.cap.drop: @@ -503,7 +504,7 @@ EOF fi if [ "$CT_TYPE" == "0" ]; then - if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" ]]; then + if [[ "$APP" == "Emby" || "$APP" == "Jellyfin" || "$APP" == "Plex" || "$APP" == "Tdarr" ]]; then cat <>$LXC_CONFIG lxc.cgroup2.devices.allow: a lxc.cap.drop: