mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
commit
3f672595ea
1 changed files with 4 additions and 3 deletions
|
|
@ -374,7 +374,7 @@ class DockerActionManager
|
||||||
$containerName = $container->GetIdentifier();
|
$containerName = $container->GetIdentifier();
|
||||||
|
|
||||||
// schedule the exec
|
// schedule the exec
|
||||||
$url = $this->BuildApiUrl(sprintf('/containers/%s/exec', urlencode($containerName)));
|
$url = $this->BuildApiUrl(sprintf('containers/%s/exec', urlencode($containerName)));
|
||||||
$response = json_decode(
|
$response = json_decode(
|
||||||
$this->guzzleClient->request(
|
$this->guzzleClient->request(
|
||||||
'POST',
|
'POST',
|
||||||
|
|
@ -391,14 +391,15 @@ class DockerActionManager
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
)->getBody()->getContents()
|
)->getBody()->getContents(),
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
// get the id from the response
|
// get the id from the response
|
||||||
$id = $response['Id'];
|
$id = $response['Id'];
|
||||||
|
|
||||||
// start the exec
|
// start the exec
|
||||||
$url = $this->BuildApiUrl(sprintf('/exec/%s/start', $id));
|
$url = $this->BuildApiUrl(sprintf('exec/%s/start', $id));
|
||||||
$this->guzzleClient->request(
|
$this->guzzleClient->request(
|
||||||
'POST',
|
'POST',
|
||||||
$url,
|
$url,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue