mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-17 03:00:21 +00:00
Make nextcloudKeepDisabledApps an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
9069b8f14c
commit
3499a07f7c
1 changed files with 4 additions and 14 deletions
|
|
@ -929,21 +929,11 @@ class ConfigurationManager
|
||||||
set { $this->set('enable_nvidia_gpu', $value); }
|
set { $this->set('enable_nvidia_gpu', $value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
private function GetKeepDisabledApps() : string {
|
public bool $nextcloudKeepDisabledApps {
|
||||||
$envVariableName = 'NEXTCLOUD_KEEP_DISABLED_APPS';
|
get => booleanize($this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_KEEP_DISABLED_APPS', 'nextcloud_keep_disabled_apps', ''));
|
||||||
$configName = 'nextcloud_keep_disabled_apps';
|
set { $this->set('nextcloud_keep_disabled_apps', $value); }
|
||||||
$defaultValue = '';
|
|
||||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function shouldDisabledAppsGetRemoved() : bool {
|
|
||||||
if ($this->GetKeepDisabledApps() === 'true') {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function camelize(string $input, string $delimiter = '_') : string {
|
private function camelize(string $input, string $delimiter = '_') : string {
|
||||||
return lcfirst(implode("", array_map('ucfirst', explode($delimiter, strtolower($input)))));
|
return lcfirst(implode("", array_map('ucfirst', explode($delimiter, strtolower($input)))));
|
||||||
|
|
||||||
|
|
@ -1042,7 +1032,7 @@ class ConfigurationManager
|
||||||
'NEXTCLOUD_ADDITIONAL_APKS' => $this->nextcloudAdditionalApks,
|
'NEXTCLOUD_ADDITIONAL_APKS' => $this->nextcloudAdditionalApks,
|
||||||
'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS' => $this->nextcloudAdditionalPhpExtensions,
|
'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS' => $this->nextcloudAdditionalPhpExtensions,
|
||||||
'INSTALL_LATEST_MAJOR' => $this->installLatestMajor,
|
'INSTALL_LATEST_MAJOR' => $this->installLatestMajor,
|
||||||
'REMOVE_DISABLED_APPS' => $this->shouldDisabledAppsGetRemoved() ? 'yes' : '',
|
'REMOVE_DISABLED_APPS' => $this->nextcloudKeepDisabledApps ? '' : 'yes',
|
||||||
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
|
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
|
||||||
'AIO_DATABASE_HOST' => gethostbyname('nextcloud-aio-database'),
|
'AIO_DATABASE_HOST' => gethostbyname('nextcloud-aio-database'),
|
||||||
// Allow to get local ip-address of caddy container and add it to trusted proxies automatically
|
// Allow to get local ip-address of caddy container and add it to trusted proxies automatically
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue