mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 21:16:52 +00:00
Make nextcloud_max_time an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
6d14bebf20
commit
5e6d3d7585
3 changed files with 5 additions and 7 deletions
|
|
@ -646,11 +646,9 @@ class ConfigurationManager
|
|||
return $uploadLimit * 1024 * 1024 * 1024;
|
||||
}
|
||||
|
||||
public function GetNextcloudMaxTime() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MAX_TIME';
|
||||
$configName = 'nextcloud_max_time';
|
||||
$defaultValue = '3600';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
public string $nextcloud_max_time {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_MAX_TIME', 'nextcloud_max_time', '3600');
|
||||
set { $this->set('nextcloud_max_time', $value); }
|
||||
}
|
||||
|
||||
public function GetBorgRetentionPolicy() : string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue