mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-15 10:10:17 +00:00
Remove residue code
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
d88871f52e
commit
d2c07bbbf7
1 changed files with 0 additions and 9 deletions
|
|
@ -419,8 +419,6 @@ class ConfigurationManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = $this->GetConfig();
|
|
||||||
$this->WriteConfig($config);
|
|
||||||
$this->setMultiple(function ($confManager) use ($domain) {
|
$this->setMultiple(function ($confManager) use ($domain) {
|
||||||
// Write domain
|
// Write domain
|
||||||
// Don't set the domain via the attribute, or we create a loop.
|
// Don't set the domain via the attribute, or we create a loop.
|
||||||
|
|
@ -443,9 +441,6 @@ class ConfigurationManager
|
||||||
*/
|
*/
|
||||||
public function SetBorgLocationVars(string $location, string $repo) : void {
|
public function SetBorgLocationVars(string $location, string $repo) : void {
|
||||||
$this->ValidateBorgLocationVars($location, $repo);
|
$this->ValidateBorgLocationVars($location, $repo);
|
||||||
|
|
||||||
$config = $this->GetConfig();
|
|
||||||
$this->WriteConfig($config);
|
|
||||||
$this->setMultiple(function ($confManager) use ($location, $repo) {
|
$this->setMultiple(function ($confManager) use ($location, $repo) {
|
||||||
$confManager->borg_backup_host_location = $location;
|
$confManager->borg_backup_host_location = $location;
|
||||||
$confManager->borg_remote_repo = $repo;
|
$confManager->borg_remote_repo = $repo;
|
||||||
|
|
@ -495,8 +490,6 @@ class ConfigurationManager
|
||||||
|
|
||||||
public function DeleteBorgBackupLocationItems() : void {
|
public function DeleteBorgBackupLocationItems() : void {
|
||||||
// Delete the variables
|
// Delete the variables
|
||||||
$config = $this->GetConfig();
|
|
||||||
$this->WriteConfig($config);
|
|
||||||
$this->setMultiple(function ($confManager) {
|
$this->setMultiple(function ($confManager) {
|
||||||
$confManager->borg_backup_host_location = '';
|
$confManager->borg_backup_host_location = '';
|
||||||
$confManager->borg_remote_repo = '';
|
$confManager->borg_remote_repo = '';
|
||||||
|
|
@ -520,8 +513,6 @@ class ConfigurationManager
|
||||||
throw new InvalidSettingConfigurationException("Please enter the password!");
|
throw new InvalidSettingConfigurationException("Please enter the password!");
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = $this->GetConfig();
|
|
||||||
$this->WriteConfig($config);
|
|
||||||
$this->setMultiple(function ($confManager) use ($location, $repo, $password) {
|
$this->setMultiple(function ($confManager) use ($location, $repo, $password) {
|
||||||
$confManager->borg_backup_host_location = $location;
|
$confManager->borg_backup_host_location = $location;
|
||||||
$confManager->borg_remote_repo = $repo;
|
$confManager->borg_remote_repo = $repo;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue