message
This commit is contained in:
parent
e41ead5561
commit
d87882a325
@ -66,18 +66,5 @@ sudo install -m 755 runc.${PLATFORM} /usr/local/sbin/runc
|
|||||||
sudo systemctl enable --now containerd
|
sudo systemctl enable --now containerd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
touch /tmp/container.txt
|
||||||
exit
|
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"
|
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,12 @@ then
|
|||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z /tmp/container.txt ]
|
||||||
|
then
|
||||||
|
echo run ./setup-containers.sh before running this script
|
||||||
|
exit 4
|
||||||
|
fi
|
||||||
|
|
||||||
# setting MYOS variable
|
# setting MYOS variable
|
||||||
MYOS=$(hostnamectl | awk '/Operating/ { print $3 }')
|
MYOS=$(hostnamectl | awk '/Operating/ { print $3 }')
|
||||||
OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
|
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=$(curl -s https://api.github.com/repos/kubernetes/kubernetes/releases/latest | jq -r '.tag_name')
|
||||||
KUBEVERSION=${KUBEVERSION%.*}
|
KUBEVERSION=${KUBEVERSION%.*}
|
||||||
|
|
||||||
echo "Latest Kubernetes version is: $latest_version"
|
|
||||||
|
|
||||||
|
|
||||||
if [ $MYOS = "Ubuntu" ]
|
if [ $MYOS = "Ubuntu" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user