Make 'nextcloudAdditionalApks' an attribute

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-26 10:10:08 +01:00
parent 4ad8fcf258
commit d50dc2db1d

View file

@ -677,11 +677,9 @@ class ConfigurationManager
set { $this->set('trusted_cacerts_dir', $value); } set { $this->set('trusted_cacerts_dir', $value); }
} }
public function GetNextcloudAdditionalApks() : string { public string $nextcloudAdditionalApks {
$envVariableName = 'NEXTCLOUD_ADDITIONAL_APKS'; get => trim($this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_ADDITIONAL_APKS', 'nextcloud_additional_apks', 'imagemagick'));
$configName = 'nextcloud_additional_apks'; set { $this->set('nextcloud_addtional_apks', $value); }
$defaultValue = 'imagemagick';
return trim($this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue));
} }
public function GetNextcloudAdditionalPhpExtensions() : string { public function GetNextcloudAdditionalPhpExtensions() : string {
@ -1077,7 +1075,7 @@ class ConfigurationManager
'APACHE_MAX_SIZE' => (string)($this->GetApacheMaxSize()), 'APACHE_MAX_SIZE' => (string)($this->GetApacheMaxSize()),
'COLLABORA_SECCOMP_POLICY' => $this->GetCollaboraSeccompPolicy(), 'COLLABORA_SECCOMP_POLICY' => $this->GetCollaboraSeccompPolicy(),
'NEXTCLOUD_STARTUP_APPS' => $this->GetNextcloudStartupApps(), 'NEXTCLOUD_STARTUP_APPS' => $this->GetNextcloudStartupApps(),
'NEXTCLOUD_ADDITIONAL_APKS' => $this->GetNextcloudAdditionalApks(), 'NEXTCLOUD_ADDITIONAL_APKS' => $this->nextcloudAdditionalApks,
'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS' => $this->GetNextcloudAdditionalPhpExtensions(), 'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS' => $this->GetNextcloudAdditionalPhpExtensions(),
'INSTALL_LATEST_MAJOR' => $this->installLatestMajor, 'INSTALL_LATEST_MAJOR' => $this->installLatestMajor,
'REMOVE_DISABLED_APPS' => $this->shouldDisabledAppsGetRemoved() ? 'yes' : '', 'REMOVE_DISABLED_APPS' => $this->shouldDisabledAppsGetRemoved() ? 'yes' : '',