mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Camelize property nextcloud_datadir_mount => nextcloudDatadirMount
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
f35a0b4367
commit
f5cf7903ad
3 changed files with 5 additions and 5 deletions
|
|
@ -127,7 +127,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
|
|||
'is_imaginary_enabled' => $configurationManager->isImaginaryEnabled,
|
||||
'is_fulltextsearch_enabled' => $configurationManager->isFulltextsearchEnabled,
|
||||
'additional_backup_directories' => $configurationManager->GetAdditionalBackupDirectoriesString(),
|
||||
'nextcloud_datadir' => $configurationManager->nextcloud_datadir_mount,
|
||||
'nextcloud_datadir' => $configurationManager->nextcloudDatadirMount,
|
||||
'nextcloud_mount' => $configurationManager->nextcloudMount,
|
||||
'nextcloud_upload_limit' => $configurationManager->nextcloud_upload_limit,
|
||||
'nextcloud_max_time' => $configurationManager->nextcloudMaxTime,
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ readonly class ContainerDefinitionFetcher {
|
|||
continue;
|
||||
}
|
||||
} elseif ($value['source'] === '%NEXTCLOUD_DATADIR%') {
|
||||
$value['source'] = $this->configurationManager->nextcloud_datadir_mount;
|
||||
$value['source'] = $this->configurationManager->nextcloudDatadirMount;
|
||||
if ($value['source'] === '') {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -487,8 +487,8 @@ class ConfigurationManager
|
|||
|
||||
// Prevent backup to be contained in Nextcloud Datadir as this will delete the backup archive upon restore
|
||||
// See https://github.com/nextcloud/all-in-one/issues/6607
|
||||
if (str_starts_with($location . '/', rtrim($this->nextcloud_datadir_mount, '/') . '/')) {
|
||||
throw new InvalidSettingConfigurationException("The path must not be a children of or equal to NEXTCLOUD_DATADIR, which is currently set to " . $this->nextcloud_datadir_mount);
|
||||
if (str_starts_with($location . '/', rtrim($this->nextcloudDatadirMount, '/') . '/')) {
|
||||
throw new InvalidSettingConfigurationException("The path must not be a children of or equal to NEXTCLOUD_DATADIR, which is currently set to " . $this->nextcloudDatadirMount);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
@ -632,7 +632,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
|
||||
public string $nextcloud_datadir_mount {
|
||||
public string $nextcloudDatadirMount {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_DATADIR', 'nextcloud_datadir', 'nextcloud_aio_nextcloud_data');
|
||||
set { $this->set('nextcloud_datadir_mount', $value); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue