allow to adjust Nextcloud apps that get installed upon first startup

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-09-26 20:27:35 +02:00 committed by Simon L
parent 54f39b5334
commit 029b6ea797
9 changed files with 33 additions and 8 deletions

View file

@ -700,6 +700,14 @@ class ConfigurationManager
return false;
}
public function GetNextcloudStartupApps() : string {
$apps = getenv('NEXTCLOUD_STARTUP_APPS');
if (is_string($apps)) {
return trim($apps);
}
return 'twofactor_totp deck tasks calendar contacts apporder';
}
public function GetCollaboraDictionaries() : string {
$config = $this->GetConfig();
if(!isset($config['collabora_dictionaries'])) {

View file

@ -328,6 +328,8 @@ class DockerActionManager
$replacements[1] = $this->configurationManager->GetApacheMaxSize();
} elseif ($out[1] === 'COLLABORA_SECCOMP_POLICY') {
$replacements[1] = $this->configurationManager->GetCollaboraSeccompPolicy();
} elseif ($out[1] === '%NEXTCLOUD_STARTUP_APPS%') {
$replacements[1] = $this->configurationManager->GetNextcloudStartupApps();
} else {
$replacements[1] = $this->configurationManager->GetSecret($out[1]);
}