Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use globbing instead of find #409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ app_setup_block: |
readme_hwaccel: true
# changelog
changelogs:
- {date: "10.10.24:", desc: "Use globbing instead of find"}
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}
- {date: "09.01.24:", desc: "Set ownership on TranscoderTempDirectory when it's been saved in Preferences."}
Expand Down
5 changes: 2 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-plex-gid-video/run
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)

for i in ${FILES}; do
for i in /dev/dri/* /dev/dvb; do
[[ -c "${i}" ]] || continue
VIDEO_GID=$(stat -c '%g' "${i}")
VIDEO_UID=$(stat -c '%u' "${i}")
# check if user matches device
Expand Down