Camelize property borg_remote_repo => borgRemoteRepo

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-23 17:22:14 +01:00
parent a81f91c11f
commit f60d726f47
2 changed files with 6 additions and 6 deletions

View file

@ -94,7 +94,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
'domain' => $configurationManager->domain, 'domain' => $configurationManager->domain,
'apache_port' => $configurationManager->apache_port, 'apache_port' => $configurationManager->apache_port,
'borg_backup_host_location' => $configurationManager->borgBackupHostLocation, 'borg_backup_host_location' => $configurationManager->borgBackupHostLocation,
'borg_remote_repo' => $configurationManager->borg_remote_repo, 'borg_remote_repo' => $configurationManager->borgRemoteRepo,
'borg_public_key' => $configurationManager->GetBorgPublicKey(), 'borg_public_key' => $configurationManager->GetBorgPublicKey(),
'nextcloud_password' => $configurationManager->GetAndGenerateSecret('NEXTCLOUD_PASSWORD'), 'nextcloud_password' => $configurationManager->GetAndGenerateSecret('NEXTCLOUD_PASSWORD'),
'containers' => (new \AIO\ContainerDefinitionFetcher($container->get(\AIO\Data\ConfigurationManager::class), $container))->FetchDefinition(), 'containers' => (new \AIO\ContainerDefinitionFetcher($container->get(\AIO\Data\ConfigurationManager::class), $container))->FetchDefinition(),

View file

@ -127,7 +127,7 @@ class ConfigurationManager
set { $this->set('borg_backup_host_location', $value); } set { $this->set('borg_backup_host_location', $value); }
} }
public string $borg_remote_repo { public string $borgRemoteRepo {
get => $this->get('borg_remote_repo', ''); get => $this->get('borg_remote_repo', '');
set { $this->set('borg_remote_repo', $value); } set { $this->set('borg_remote_repo', $value); }
} }
@ -462,7 +462,7 @@ class ConfigurationManager
$this->ValidateBorgLocationVars($location, $repo); $this->ValidateBorgLocationVars($location, $repo);
$this->startTransaction(); $this->startTransaction();
$this->borgBackupHostLocation = $location; $this->borgBackupHostLocation = $location;
$this->borg_remote_repo = $repo; $this->borgRemoteRepo = $repo;
$this->commitTransaction(); $this->commitTransaction();
} }
@ -511,7 +511,7 @@ class ConfigurationManager
// Delete the variables // Delete the variables
$this->startTransaction(); $this->startTransaction();
$this->borgBackupHostLocation = ''; $this->borgBackupHostLocation = '';
$this->borg_remote_repo = ''; $this->borgRemoteRepo = '';
$this->commitTransaction(); $this->commitTransaction();
// Also delete the borg config file to be able to start over // Also delete the borg config file to be able to start over
@ -534,7 +534,7 @@ class ConfigurationManager
$this->startTransaction(); $this->startTransaction();
$this->borgBackupHostLocation = $location; $this->borgBackupHostLocation = $location;
$this->borg_remote_repo = $repo; $this->borgRemoteRepo = $repo;
$this->borg_restore_password = $password; $this->borg_restore_password = $password;
$this->instanceRestoreAttempt = true; $this->instanceRestoreAttempt = true;
$this->commitTransaction(); $this->commitTransaction();
@ -1046,7 +1046,7 @@ class ConfigurationManager
'NC_DOMAIN' => $this->domain, 'NC_DOMAIN' => $this->domain,
'NC_BASE_DN' => $this->GetBaseDN(), 'NC_BASE_DN' => $this->GetBaseDN(),
'AIO_TOKEN' => $this->aioToken, 'AIO_TOKEN' => $this->aioToken,
'BORGBACKUP_REMOTE_REPO' => $this->borg_remote_repo, 'BORGBACKUP_REMOTE_REPO' => $this->borgRemoteRepo,
'BORGBACKUP_MODE' => $this->backupMode, 'BORGBACKUP_MODE' => $this->backupMode,
'AIO_URL' => $this->aioUrl, 'AIO_URL' => $this->aioUrl,
'SELECTED_RESTORE_TIME' => $this->selectedRestoreTime, 'SELECTED_RESTORE_TIME' => $this->selectedRestoreTime,