Update emby-install.sh

hardware acceleration - check for privileged/unprivileged
This commit is contained in:
tteckster 2022-10-21 16:40:04 -04:00 committed by GitHub
parent e6d2cbc812
commit 6d0ba55c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ apt-get install -y curl &>/dev/null
apt-get install -y sudo &>/dev/null apt-get install -y sudo &>/dev/null
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
msg_info "Setting Up Hardware Acceleration" msg_info "Setting Up Hardware Acceleration"
apt-get -y install \ apt-get -y install \
va-driver-all \ va-driver-all \
@ -83,6 +84,7 @@ apt-get -y install \
/bin/chmod 755 /dev/dri /bin/chmod 755 /dev/dri
/bin/chmod 660 /dev/dri/* /bin/chmod 660 /dev/dri/*
msg_ok "Set Up Hardware Acceleration" 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) LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4)