Compare commits

..

4 Commits

Author SHA1 Message Date
tteckster 08235d8ac2
Update plex.sh
change wording
2023-05-14 12:04:15 -04:00
tteckster 3a3f00e522
Update tdarr.sh
default privileged
2023-05-14 11:45:22 -04:00
tteckster 66aef55ab0
Update tdarr-install.sh
Hardware Acceleration
2023-05-14 11:44:18 -04:00
tteckster 58909e197a
Update build.func
add Tdarr to Hardware Acceleration Support
2023-05-14 11:43:17 -04:00
4 changed files with 18 additions and 4 deletions

View File

@ -54,7 +54,7 @@ function update_script() {
if [[ ! -f /etc/apt/sources.list.d/plexmediaserver.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select \nplexupdate info >> https://github.com/mrworf/plexupdate" 10 59 2 \
"1" "Update LXC" ON \
"2" "Run plexupdate" OFF \
"2" "Install plexupdate" OFF \
3>&1 1>&2 2>&3)
header_info

View File

@ -29,7 +29,7 @@ color
catch_errors
function default_settings() {
CT_TYPE="1"
CT_TYPE="0"
PW=""
CT_ID=$NEXTID
HN=$NSAPP

View File

@ -20,6 +20,19 @@ $STD apt-get install -y mc
$STD apt-get install -y unzip
msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \
va-driver-all \
ocl-icd-libopencl1 \
intel-opencl-icd
/bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri
/bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration"
fi
msg_info "Installing Tdarr"
mkdir -p /opt/tdarr
cd /opt/tdarr

View File

@ -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 <<EOF >>$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 <<EOF >>$LXC_CONFIG
lxc.cgroup2.devices.allow: a
lxc.cap.drop: