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
1 changed files with 2 additions and 0 deletions

View File

@ -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)