Update plex-v5-install.sh

install beignet-opencl-icd only on 20.04
This commit is contained in:
tteckster 2023-01-18 13:15:21 -05:00 committed by GitHub
parent 220c436e57
commit c12d58630f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -91,8 +91,8 @@ if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \ $STD apt-get -y install \
va-driver-all \ va-driver-all \
ocl-icd-libopencl1 \ ocl-icd-libopencl1
beignet-opencl-icd if [[ ${PCT_OSVERSION} == "20.04" ]]; then $STD apt-get -y install beignet-opencl-icd; fi
/bin/chgrp video /dev/dri /bin/chgrp video /dev/dri
/bin/chmod 755 /dev/dri /bin/chmod 755 /dev/dri
@ -102,9 +102,7 @@ fi
msg_info "Setting Up Plex Media Server Repository" msg_info "Setting Up Plex Media Server Repository"
$STD apt-key add <(curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key) $STD apt-key add <(curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key)
cat <<EOF >/etc/apt/sources.list.d/plexmediaserver.list sh -c 'echo "deb [arch=$(dpkg --print-architecture)] https://downloads.plex.tv/repo/deb/ public main" > /etc/apt/sources.list.d/plexmediaserver.list'
deb [arch=amd64] https://downloads.plex.tv/repo/deb/ public main
EOF
msg_ok "Set Up Plex Media Server Repository" msg_ok "Set Up Plex Media Server Repository"
msg_info "Installing Plex Media Server" msg_info "Installing Plex Media Server"