From 6d0ba55c8393e04be2cdf79c1ae26ad7d43d52d3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 21 Oct 2022 16:40:04 -0400 Subject: [PATCH] Update emby-install.sh hardware acceleration - check for privileged/unprivileged --- setup/emby-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/emby-install.sh b/setup/emby-install.sh index 28c762ab..39919c87 100644 --- a/setup/emby-install.sh +++ b/setup/emby-install.sh @@ -73,6 +73,7 @@ apt-get install -y curl &>/dev/null apt-get install -y sudo &>/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 \ @@ -83,6 +84,7 @@ apt-get -y install \ /bin/chmod 755 /dev/dri /bin/chmod 660 /dev/dri/* msg_ok "Set Up Hardware Acceleration" +fi LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4)