mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
internal_ports should be a string and not an array
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
53065b5631
commit
54f61eba68
8 changed files with 32 additions and 81 deletions
|
|
@ -124,15 +124,13 @@ class DockerActionManager
|
|||
}
|
||||
|
||||
$containerName = $container->GetIdentifier();
|
||||
if ($container->GetInternalPorts() !== null) {
|
||||
foreach($container->GetInternalPorts()->GetInternalPorts() as $internalPort) {
|
||||
$connection = @fsockopen($containerName, $internalPort, $errno, $errstr, 0.1);
|
||||
if ($connection) {
|
||||
fclose($connection);
|
||||
return new RunningState();
|
||||
} else {
|
||||
return new StartingState();
|
||||
}
|
||||
if ($container->GetInternalPort() !== "") {
|
||||
$connection = @fsockopen($containerName, (int)$container->GetInternalPort(), $errno, $errstr, 0.1);
|
||||
if ($connection) {
|
||||
fclose($connection);
|
||||
return new RunningState();
|
||||
} else {
|
||||
return new StartingState();
|
||||
}
|
||||
} else {
|
||||
return new RunningState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue