mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-05 05:17:57 +00:00
Make 'nextcloudEnableDriDevice' an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
76b871fc86
commit
f5a035c450
3 changed files with 5 additions and 15 deletions
|
|
@ -919,19 +919,9 @@ class ConfigurationManager
|
|||
return $cc;
|
||||
}
|
||||
|
||||
private function GetEnabledDriDevice() : string {
|
||||
$envVariableName = 'NEXTCLOUD_ENABLE_DRI_DEVICE';
|
||||
$configName = 'nextcloud_enable_dri_device';
|
||||
$defaultValue = '';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
}
|
||||
|
||||
public function isDriDeviceEnabled() : bool {
|
||||
if ($this->GetEnabledDriDevice() === 'true') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
public bool $nextcloudEnableDriDevice{
|
||||
get => booleanize($this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_ENABLE_DRI_DEVICE', 'nextcloud_enable_dri_device', ''));
|
||||
set { $this->set('nextcloud_enable_dri_device', $value); }
|
||||
}
|
||||
|
||||
private function GetEnabledNvidiaGpu() : string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue