mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +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
|
// set AIO_TOKEN
|
||||||
$config['AIO_TOKEN'] = bin2hex(random_bytes(24));
|
$config['AIO_TOKEN'] = bin2hex(random_bytes(24));
|
||||||
$this->configurationManager->WriteConfig($config);
|
$this->configurationManager->WriteConfig($config);
|
||||||
$this->configurationManager->SetIsContainerUpateAvailable(false);
|
|
||||||
|
|
||||||
// Stop domaincheck since apache would not be able to start otherwise
|
// Stop domaincheck since apache would not be able to start otherwise
|
||||||
$this->StopDomaincheckContainer();
|
$this->StopDomaincheckContainer();
|
||||||
|
|
|
||||||
|
|
@ -30,16 +30,6 @@ class ConfigurationManager
|
||||||
return $this->GetConfig()['AIO_TOKEN'];
|
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 {
|
public function SetPassword(string $password) : void {
|
||||||
$config = $this->GetConfig();
|
$config = $this->GetConfig();
|
||||||
$config['username'] = 'admin';
|
$config['username'] = 'admin';
|
||||||
|
|
|
||||||
|
|
@ -290,12 +290,8 @@ class DockerActionManager
|
||||||
public function isAnyUpdateAvailable() {
|
public function isAnyUpdateAvailable() {
|
||||||
$id = 'nextcloud-aio-apache';
|
$id = 'nextcloud-aio-apache';
|
||||||
|
|
||||||
if ($this->configurationManager->GetIsContainerUpateAvailable()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->isContainerUpdateAvailable($id) !== "") {
|
if ($this->isContainerUpdateAvailable($id) !== "") {
|
||||||
$this->configurationManager->SetIsContainerUpateAvailable(true);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue