Merge pull request #7619 from nextcloud/enh/7612/prevent-image-hash

fix getting name of mastercontainer if a hash was found
This commit is contained in:
Simon L.
2026-02-18 13:53:46 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -654,8 +654,8 @@ readonly class DockerActionManager {
if (count($imageNameArray) === 2) {
$imageName = $imageNameArray[0];
} else {
error_log("No tag was found when getting the current channel. You probably did not follow the documentation correctly. Changing the imageName to the default " . $output['Config']['Image']);
$imageName = $output['Config']['Image'];
error_log("Unexpected image name was found when getting the current image name of the mastercontainer. You probably did not follow the documentation correctly. Changing the image name to the default 'ghcr.io/nextcloud-releases/all-in-one'.");
$imageName = 'ghcr.io/nextcloud-releases/all-in-one';
}
apcu_add($cacheKey, $imageName);
return $imageName;