Skip to content

Commit

Permalink
Merge pull request #3047 from nextcloud/enh/noid/add-executable-bit
Browse files Browse the repository at this point in the history
add executable bit on tmpfs for nextcloud container
  • Loading branch information
szaimen authored Aug 9, 2023
2 parents dbb395f + 3d868d4 commit afcd9cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion php/containers-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": "^/[a-z/_0-9-]+$"
"pattern": "^/[a-z/_0-9-:]+$"
}
},
"volumes": {
Expand Down
2 changes: 1 addition & 1 deletion php/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"nextcloud-aio"
],
"tmpfs": [
"/tmp"
"/tmp:exec"
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion php/src/Docker/DockerActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,11 @@ public function CreateContainer(Container $container) : void {

$tmpfs = [];
foreach($container->GetTmpfs() as $tmp) {
$tmpfs[$tmp] = "";
$mode = "";
if (str_contains($tmp, ':')) {
$mode = explode(':', $tmp)[1];
}
$tmpfs[$tmp] = $mode;
}
if (count($tmpfs) > 0) {
$requestBody['HostConfig']['Tmpfs'] = $tmpfs;
Expand Down

0 comments on commit afcd9cd

Please sign in to comment.