Merge pull request #2454 from nextcloud/enh/noid/nextcloud-exec-commands

allow to define nextcloud_exec_commands in containers definition
This commit is contained in:
Simon L 2023-05-30 11:42:46 +02:00 committed by GitHub
commit d037ebba66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 77 additions and 17 deletions

View file

@ -249,6 +249,11 @@ class ContainerDefinitionFetcher
$backupVolumes = $entry['backup_volumes'];
}
$nextcloudExecCommands = [];
if (isset($entry['nextcloud_exec_commands'])) {
$nextcloudExecCommands = $entry['nextcloud_exec_commands'];
}
$containers[] = new Container(
$entry['container_name'],
$displayName,
@ -266,6 +271,7 @@ class ContainerDefinitionFetcher
$shmSize,
$apparmorUnconfined,
$backupVolumes,
$nextcloudExecCommands,
$this->container->get(DockerActionManager::class)
);
}