mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 22:46:55 +00:00
disable login if Nextcloud is running
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
892590275f
commit
0010a6cfa3
3 changed files with 27 additions and 9 deletions
|
|
@ -507,4 +507,13 @@ class DockerActionManager
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public function isLoginAllowed() : bool {
|
||||
$id = 'nextcloud-aio-apache';
|
||||
$apacheContainer = $this->containerDefinitionFetcher->GetContainerById($id);
|
||||
if ($this->GetContainerStartingState($apacheContainer) instanceof RunningState) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue