allow to specify AIO_COMMUNITY_CONTAINERS

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-09-27 17:40:42 +02:00
parent 598faf7eef
commit 2a746863b9
6 changed files with 33 additions and 1 deletions

View file

@ -874,6 +874,17 @@ class ConfigurationManager
}
}
private function GetCommunityContainers() : string {
$envVariableName = 'AIO_COMMUNITY_CONTAINERS';
$configName = 'aio_community_containers';
$defaultValue = '';
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
}
public function GetEnabledCommunityContainers() : array {
return explode(' ', $this->GetCommunityContainers());
}
private function GetEnabledDriDevice() : string {
$envVariableName = 'NEXTCLOUD_ENABLE_DRI_DEVICE';
$configName = 'nextcloud_enable_dri_device';

View file

@ -50,4 +50,8 @@ class DataConst {
public static function GetSessionDateFile() : string {
return self::GetDataDirectory() . '/session_date_file';
}
public static function GetCommunityContainersDirectory() : string {
return realpath(__DIR__ . '/../../../community-containers/');
}
}