mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
DockerActionManager: fix Nextcloud is oudated notification
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
9f5710917d
commit
0c76d14fcb
1 changed files with 7 additions and 3 deletions
|
|
@ -1030,8 +1030,8 @@ readonly class DockerActionManager {
|
|||
return false;
|
||||
}
|
||||
|
||||
private function GetCreatedTimeOfNextcloudImage(): ?string {
|
||||
$imageName = 'nextcloud/aio-nextcloud' . ':' . $this->GetCurrentChannel();
|
||||
private function GetCreatedTimeOfNextcloudImage(string $imageName): ?string {
|
||||
$imageName = $imageName . ':' . $this->GetCurrentChannel();
|
||||
try {
|
||||
$imageUrl = $this->BuildApiUrl(sprintf('images/%s/json', $imageName));
|
||||
$imageOutput = json_decode($this->guzzleClient->get($imageUrl)->getBody()->getContents(), true);
|
||||
|
|
@ -1052,7 +1052,11 @@ readonly class DockerActionManager {
|
|||
}
|
||||
|
||||
public function isNextcloudImageOutdated(): bool {
|
||||
$createdTime = $this->GetCreatedTimeOfNextcloudImage();
|
||||
$createdTime = $this->GetCreatedTimeOfNextcloudImage('ghcr.io/nextcloud-releases/aio-nextcloud');
|
||||
|
||||
if ($createdTime === null) {
|
||||
$createdTime = $this->GetCreatedTimeOfNextcloudImage('nextcloud/aio-nextcloud');
|
||||
}
|
||||
|
||||
if ($createdTime === null) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue