mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix some paths and seccompprofile
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
e15304e28f
commit
cc65481d51
2 changed files with 2 additions and 3 deletions
|
|
@ -60,10 +60,10 @@ class DataConst {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function GetCollaboraSeccompProfilePath() : string {
|
public static function GetCollaboraSeccompProfilePath() : string {
|
||||||
return (string)realpath(__DIR__ . '/../cool-seccomp-profile.json');
|
return (string)realpath(__DIR__ . '/../../cool-seccomp-profile.json');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function GetContainersDefinitionPath() : string {
|
public static function GetContainersDefinitionPath() : string {
|
||||||
return (string)realpath(__DIR__ . '/../containers.json');
|
return (string)realpath(__DIR__ . '/../../containers.json');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,6 @@ readonly class DockerActionManager {
|
||||||
} elseif ($container->GetIdentifier() === 'nextcloud-aio-collabora') {
|
} elseif ($container->GetIdentifier() === 'nextcloud-aio-collabora') {
|
||||||
// Load reference seccomp profile for collabora
|
// Load reference seccomp profile for collabora
|
||||||
$seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath());
|
$seccompProfile = (string)file_get_contents(DataConst::GetCollaboraSeccompProfilePath());
|
||||||
$seccompProfile = addslashes($seccompProfile);
|
|
||||||
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile", "no-new-privileges=true", "apparmor=unconfined"];
|
$requestBody['HostConfig']['SecurityOpt'] = ["label:disable", "seccomp=$seccompProfile", "no-new-privileges=true", "apparmor=unconfined"];
|
||||||
|
|
||||||
// Additional Collabora options
|
// Additional Collabora options
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue