This commit is contained in:
sandervanvugt 2024-03-11 11:38:34 +01:00
parent e41ead5561
commit d87882a325
2 changed files with 7 additions and 16 deletions

View File

@ -66,18 +66,5 @@ sudo install -m 755 runc.${PLATFORM} /usr/local/sbin/runc
sudo systemctl enable --now containerd
fi
touch /tmp/container.txt
exit
#### notes from history just in case
#!/bin/bash
# Fetch the latest release tag from GitHub API
LATEST_TAG=$(curl -s https://api.github.com/repos/opencontainers/runc/releases/latest | jq -r '.tag_name')
# Construct the download URL
DOWNLOAD_URL="https://github.com/opencontainers/runc/releases/download/${LATEST_TAG}/runc.amd64"
# Use wget to download the latest version
wget "$DOWNLOAD_URL"
echo "Downloaded $DOWNLOAD_URL"

View File

@ -11,6 +11,12 @@ then
exit 3
fi
if [ -z /tmp/container.txt ]
then
echo run ./setup-containers.sh before running this script
exit 4
fi
# setting MYOS variable
MYOS=$(hostnamectl | awk '/Operating/ { print $3 }')
OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
@ -19,8 +25,6 @@ OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
KUBEVERSION=$(curl -s https://api.github.com/repos/kubernetes/kubernetes/releases/latest | jq -r '.tag_name')
KUBEVERSION=${KUBEVERSION%.*}
echo "Latest Kubernetes version is: $latest_version"
if [ $MYOS = "Ubuntu" ]
then