mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 14:30:13 +00:00
fix the initial credential screen
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
@@ -108,7 +108,6 @@ class DockerController
|
||||
// set AIO_TOKEN
|
||||
$config['AIO_TOKEN'] = bin2hex(random_bytes(24));
|
||||
$this->configurationManager->WriteConfig($config);
|
||||
$this->configurationManager->SetIsContainerUpateAvailable(false);
|
||||
|
||||
// Stop domaincheck since apache would not be able to start otherwise
|
||||
$this->StopDomaincheckContainer();
|
||||
|
||||
@@ -30,16 +30,6 @@ class ConfigurationManager
|
||||
return $this->GetConfig()['AIO_TOKEN'];
|
||||
}
|
||||
|
||||
public function GetIsContainerUpateAvailable() : bool {
|
||||
return isset($this->GetConfig()['isContainerUpateAvailable']) ? $this->GetConfig()['isContainerUpateAvailable'] : false;
|
||||
}
|
||||
|
||||
public function SetIsContainerUpateAvailable(bool $value) : void {
|
||||
$config = $this->GetConfig();
|
||||
$config['isContainerUpateAvailable'] = $value;
|
||||
$this->WriteConfig($config);
|
||||
}
|
||||
|
||||
public function SetPassword(string $password) : void {
|
||||
$config = $this->GetConfig();
|
||||
$config['username'] = 'admin';
|
||||
|
||||
@@ -290,12 +290,8 @@ class DockerActionManager
|
||||
public function isAnyUpdateAvailable() {
|
||||
$id = 'nextcloud-aio-apache';
|
||||
|
||||
if ($this->configurationManager->GetIsContainerUpateAvailable()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->isContainerUpdateAvailable($id) !== "") {
|
||||
$this->configurationManager->SetIsContainerUpateAvailable(true);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user