File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,10 @@ function install-containerd-ubuntu {
490
490
# Override to latest versions of containerd and runc
491
491
systemctl stop containerd
492
492
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/
494
497
fi
495
498
if [[ ! -z " ${UBUNTU_INSTALL_RUNC_VERSION:- } " ]]; then
496
499
curl -fsSL " https://github.com/opencontainers/runc/releases/download/${UBUNTU_INSTALL_RUNC_VERSION} /runc.amd64" --output /usr/sbin/runc && chmod 755 /usr/sbin/runc
You can’t perform that action at this time.
0 commit comments