mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-05 05:17:57 +00:00
Make 'disableBackupSection' an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
5f41443cc2
commit
76b871fc86
2 changed files with 4 additions and 14 deletions
|
|
@ -879,19 +879,9 @@ class ConfigurationManager
|
|||
set { $this->set('apache_additional_network', $value); }
|
||||
}
|
||||
|
||||
private function GetDisableBackupSection() : string {
|
||||
$envVariableName = 'AIO_DISABLE_BACKUP_SECTION';
|
||||
$configName = 'disable_backup_section';
|
||||
$defaultValue = '';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
}
|
||||
|
||||
public function isBackupSectionEnabled() : bool {
|
||||
if ($this->GetDisableBackupSection() === 'true') {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
public bool $disableBackupSection {
|
||||
get => booleanize($this->GetEnvironmentalVariableOrConfig('AIO_DISABLE_BACKUP_SECTION', 'disable_backup_section', ''));
|
||||
set { $this->set('disable_backup_section', $value); }
|
||||
}
|
||||
|
||||
public function listAvailableCommunityContainers() : array {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue