fix the initial credential screen

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-12-01 01:49:55 +01:00
parent 3f672595ea
commit dca989e99b
3 changed files with 0 additions and 15 deletions

View file

@ -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();

View file

@ -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';

View file

@ -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;