mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 14:06:50 +00:00
fix the initial credential screen
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
3f672595ea
commit
dca989e99b
3 changed files with 0 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue