From e6d2cbc8122c34306129ed6b665c779ccd8eaf30 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 21 Oct 2022 16:23:11 -0400 Subject: [PATCH] Update plex-install.sh hardware acceleration - check for privileged/unprivileged --- setup/plex-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/plex-install.sh b/setup/plex-install.sh index 90e21271..3d8a1cb0 100644 --- a/setup/plex-install.sh +++ b/setup/plex-install.sh @@ -74,6 +74,7 @@ apt-get install -y sudo &>/dev/null apt-get install -y gnupg &>/dev/null msg_ok "Installed Dependencies" +if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then msg_info "Setting Up Hardware Acceleration" apt-get -y install \ va-driver-all \ @@ -84,6 +85,7 @@ apt-get -y install \ /bin/chmod 755 /dev/dri /bin/chmod 660 /dev/dri/* msg_ok "Set Up Hardware Acceleration" +fi msg_info "Setting Up Plex Media Server Repository" wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add - &>/dev/null