mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-10 00:27:01 +00:00
makemkv: allow it to access the necessary devices
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
@@ -37,6 +37,9 @@
|
|||||||
"writeable": false
|
"writeable": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"cap_add": [
|
||||||
|
"SYS_RAWIO"
|
||||||
|
],
|
||||||
"environment": [
|
"environment": [
|
||||||
"TZ=%TIMEZONE%",
|
"TZ=%TIMEZONE%",
|
||||||
"SECURE_CONNECTION=1",
|
"SECURE_CONNECTION=1",
|
||||||
|
|||||||
@@ -482,6 +482,10 @@ readonly class DockerActionManager {
|
|||||||
} elseif ($container->identifier === 'nextcloud-aio-scrutiny') {
|
} elseif ($container->identifier === 'nextcloud-aio-scrutiny') {
|
||||||
// Allow it to access block devices
|
// Allow it to access block devices
|
||||||
$requestBody['HostConfig']['DeviceCgroupRules'] = ["b *:* rmw"];
|
$requestBody['HostConfig']['DeviceCgroupRules'] = ["b *:* rmw"];
|
||||||
|
// Special things for the makemkv container which should not be exposed in the containers.json
|
||||||
|
} elseif ($container->identifier === 'nextcloud-aio-makemkv') {
|
||||||
|
// Allow it to access block devices
|
||||||
|
$requestBody['HostConfig']['DeviceCgroupRules'] = ["b 11:* rmw", "c 21:* rmw"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($mounts) > 0) {
|
if (count($mounts) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user