allow to define nextcloud_exec_commands in containers definition

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-05-01 18:37:33 +02:00
parent 3e04dd5c2e
commit e4de4dcb67
10 changed files with 77 additions and 17 deletions

View file

@ -29,6 +29,7 @@ class Container {
private bool $apparmorUnconfined;
/** @var string[] */
private array $backupVolumes;
private array $nextcloudExecCommands;
private DockerActionManager $dockerActionManager;
public function __construct(
@ -48,6 +49,7 @@ class Container {
int $shmSize,
bool $apparmorUnconfined,
array $backupVolumes,
array $nextcloudExecCommands,
DockerActionManager $dockerActionManager
) {
$this->identifier = $identifier;
@ -66,6 +68,7 @@ class Container {
$this->shmSize = $shmSize;
$this->apparmorUnconfined = $apparmorUnconfined;
$this->backupVolumes = $backupVolumes;
$this->nextcloudExecCommands = $nextcloudExecCommands;
$this->dockerActionManager = $dockerActionManager;
}
@ -148,6 +151,10 @@ class Container {
return $this->dependsOn;
}
public function GetNextcloudExecCommands() : array {
return $this->nextcloudExecCommands;
}
public function GetEnvironmentVariables() : ContainerEnvironmentVariables {
return $this->containerEnvironmentVariables;
}