mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-09-19 17:50:20 +00:00
Save default container selection on setup.
Save the default container selection to the config, so it gets persisted even if people don't change anything in the UI. Without this any change to the defaults would be applied to existing instances. Signed-off-by: Pablo Zmdl <pablo@nextcloud.com> AI-assistant: Copilot v1.0.69 (Claude Sonnet 4.6)
This commit is contained in:
@@ -18,7 +18,23 @@ readonly class Setup {
|
||||
}
|
||||
|
||||
$password = $this->passwordGenerator->GeneratePassword(8);
|
||||
// Save the password and the default container selection to the config, so it gets persisted even if
|
||||
// people don't change anything in the UI. Without this any change to the defaults would be applied to
|
||||
// existing instances.
|
||||
$this->configurationManager->startTransaction();
|
||||
$this->configurationManager->password = $password;
|
||||
// Get the defaults for these config options from their own getters to avoid duplication of defaults.
|
||||
// Makes the code look funny but works.
|
||||
$this->configurationManager->officeSuite = $this->configurationManager->officeSuite;
|
||||
$this->configurationManager->isClamavEnabled = $this->configurationManager->isClamavEnabled;
|
||||
$this->configurationManager->isFulltextsearchEnabled = $this->configurationManager->isFulltextsearchEnabled;
|
||||
$this->configurationManager->isImaginaryEnabled = $this->configurationManager->isImaginaryEnabled;
|
||||
$this->configurationManager->isTalkEnabled = $this->configurationManager->isTalkEnabled;
|
||||
$this->configurationManager->isTalkRecordingEnabled = $this->configurationManager->isTalkRecordingEnabled;
|
||||
$this->configurationManager->isDockerSocketProxyEnabled = $this->configurationManager->isDockerSocketProxyEnabled;
|
||||
$this->configurationManager->isHarpEnabled = $this->configurationManager->isHarpEnabled;
|
||||
$this->configurationManager->isWhiteboardEnabled = $this->configurationManager->isWhiteboardEnabled;
|
||||
$this->configurationManager->commitTransaction();
|
||||
return $password;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user