Skip to content

Commit a653c21

Browse files
committed
Tolerate slightly different containerd urls
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 27aca3f commit a653c21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cluster/gce/gci/configure.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,10 @@ function install-containerd-ubuntu {
490490
# Override to latest versions of containerd and runc
491491
systemctl stop containerd
492492
if [[ ! -z "${UBUNTU_INSTALL_CONTAINERD_VERSION:-}" ]]; then
493-
curl -fsSL "https://github.com/containerd/containerd/releases/download/${UBUNTU_INSTALL_CONTAINERD_VERSION}/containerd-${UBUNTU_INSTALL_CONTAINERD_VERSION:1}.linux-amd64.tar.gz" | tar --overwrite -xzv -C /usr/
493+
# containerd versions have slightly different url(s), so try both
494+
( curl -fsSL "https://github.com/containerd/containerd/releases/download/${UBUNTU_INSTALL_CONTAINERD_VERSION}/containerd-${UBUNTU_INSTALL_CONTAINERD_VERSION:1}-linux-amd64.tar.gz" || \
495+
curl -fsSL "https://github.com/containerd/containerd/releases/download/${UBUNTU_INSTALL_CONTAINERD_VERSION}/containerd-${UBUNTU_INSTALL_CONTAINERD_VERSION:1}.linux-amd64.tar.gz" ) \
496+
| tar --overwrite -xzv -C /usr/
494497
fi
495498
if [[ ! -z "${UBUNTU_INSTALL_RUNC_VERSION:-}" ]]; then
496499
curl -fsSL "https://github.com/opencontainers/runc/releases/download/${UBUNTU_INSTALL_RUNC_VERSION}/runc.amd64" --output /usr/sbin/runc && chmod 755 /usr/sbin/runc

0 commit comments

Comments
 (0)