mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
add executable bit on tmpfs for nextcloud container
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
e8ef49c42f
commit
3d868d4457
3 changed files with 7 additions and 3 deletions
|
|
@ -141,7 +141,7 @@
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^/[a-z/_0-9-]+$"
|
"pattern": "^/[a-z/_0-9-:]+$"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"volumes": {
|
"volumes": {
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@
|
||||||
"nextcloud-aio"
|
"nextcloud-aio"
|
||||||
],
|
],
|
||||||
"tmpfs": [
|
"tmpfs": [
|
||||||
"/tmp"
|
"/tmp:exec"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -439,7 +439,11 @@ class DockerActionManager
|
||||||
|
|
||||||
$tmpfs = [];
|
$tmpfs = [];
|
||||||
foreach($container->GetTmpfs() as $tmp) {
|
foreach($container->GetTmpfs() as $tmp) {
|
||||||
$tmpfs[$tmp] = "";
|
$mode = "";
|
||||||
|
if (str_contains($tmp, ':')) {
|
||||||
|
$mode = explode(':', $tmp)[1];
|
||||||
|
}
|
||||||
|
$tmpfs[$tmp] = $mode;
|
||||||
}
|
}
|
||||||
if (count($tmpfs) > 0) {
|
if (count($tmpfs) > 0) {
|
||||||
$requestBody['HostConfig']['Tmpfs'] = $tmpfs;
|
$requestBody['HostConfig']['Tmpfs'] = $tmpfs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue