mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 13:06:53 +00:00
Make nextcloud_mount an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
bb865b7dee
commit
44d5b7cd5e
4 changed files with 9 additions and 11 deletions
|
|
@ -620,11 +620,9 @@ class ConfigurationManager
|
|||
return trim((string)file_get_contents(DataConst::GetBackupPublicKey()));
|
||||
}
|
||||
|
||||
public function GetNextcloudMount() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MOUNT';
|
||||
$configName = 'nextcloud_mount';
|
||||
$defaultValue = '';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
public string $nextcloud_mount {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_MOUNT', 'nextcloud_mount', '');
|
||||
set { $this->set('nextcloud_mount', $value); }
|
||||
}
|
||||
|
||||
public function GetNextcloudDatadirMount() : string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue