mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 18:50:20 +00:00
fix startdomaincheckcontainer logic
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
9b11c817b2
commit
071601ba6c
1 changed files with 5 additions and 4 deletions
|
|
@ -149,18 +149,19 @@ class DockerController
|
||||||
public function StartDomaincheckContainer() : void
|
public function StartDomaincheckContainer() : void
|
||||||
{
|
{
|
||||||
# Don't start if domain is already set
|
# Don't start if domain is already set
|
||||||
if ($this->configurationManager->GetDomain() != '') {
|
if ($this->configurationManager->GetDomain() !== '' || $this->configurationManager->wasStartButtonClicked()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = 'nextcloud-aio-domaincheck';
|
$id = 'nextcloud-aio-domaincheck';
|
||||||
|
|
||||||
$container = $this->containerDefinitionFetcher->GetContainerById($id);
|
$domaincheckContainer = $this->containerDefinitionFetcher->GetContainerById($id);
|
||||||
|
$apacheContainer = $this->containerDefinitionFetcher->GetContainerById(self::TOP_CONTAINER);
|
||||||
// don't start if the domaincheck is already running
|
// don't start if the domaincheck is already running
|
||||||
if ($container->GetIdentifier() === $id && $container->GetRunningState() instanceof RunningState) {
|
if ($domaincheckContainer->GetRunningState() instanceof RunningState) {
|
||||||
return;
|
return;
|
||||||
// don't start if apache is already running
|
// don't start if apache is already running
|
||||||
} elseif ($container->GetIdentifier() === self::TOP_CONTAINER && $container->GetRunningState() instanceof RunningState) {
|
} elseif ($apacheContainer->GetRunningState() instanceof RunningState) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue