fix video perm error message

This commit is contained in:
aptalca
2021-12-25 14:28:17 -05:00
parent a87e789bc7
commit 39d6a2091e
3 changed files with 3 additions and 1 deletions

View File

@@ -304,6 +304,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions ## Versions
* **25.12.21:** - Fix video device group perms error message.
* **10.12.21:** - Rework readme, disable template sync. * **10.12.21:** - Rework readme, disable template sync.
* **22.09.21:** - Pull only the server, web and ffmpeg packages instead of the wrapper. * **22.09.21:** - Pull only the server, web and ffmpeg packages instead of the wrapper.
* **23.06.21:** - Add log message if device permissions are incorrect. Pin jellyfin dependency versions to prevent upstream apt repo issues. Deprecate the `bionic` tag. * **23.06.21:** - Add log message if device permissions are incorrect. Pin jellyfin dependency versions to prevent upstream apt repo issues. Deprecate the `bionic` tag.

View File

@@ -117,6 +117,7 @@ unraid_template_sync: false
# changelog # changelog
changelogs: changelogs:
- { date: "25.12.21:", desc: "Fix video device group perms error message." }
- { date: "10.12.21:", desc: "Rework readme, disable template sync." } - { date: "10.12.21:", desc: "Rework readme, disable template sync." }
- { date: "22.09.21:", desc: "Pull only the server, web and ffmpeg packages instead of the wrapper." } - { date: "22.09.21:", desc: "Pull only the server, web and ffmpeg packages instead of the wrapper." }
- { date: "23.06.21:", desc: "Add log message if device permissions are incorrect. Pin jellyfin dependency versions to prevent upstream apt repo issues. Deprecate the `bionic` tag." } - { date: "23.06.21:", desc: "Add log message if device permissions are incorrect. Pin jellyfin dependency versions to prevent upstream apt repo issues. Deprecate the `bionic` tag." }

View File

@@ -13,7 +13,7 @@ do
groupmod -g "$VIDEO_GID" "$VIDEO_NAME" groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
fi fi
usermod -a -G "$VIDEO_NAME" abc usermod -a -G "$VIDEO_NAME" abc
if [ $(stat -c '%A' "${i}" | cut -b 8,9) != "rw" ]; then if [ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]; then
echo -e "**** The device ${i} does not have group read/write permissions, which might prevent hardware transcode from functioning correctly. To fix it, you can run the following on your docker host: ****\nsudo chmod g+rw ${i}\n" echo -e "**** The device ${i} does not have group read/write permissions, which might prevent hardware transcode from functioning correctly. To fix it, you can run the following on your docker host: ****\nsudo chmod g+rw ${i}\n"
fi fi
fi fi