diff --git a/setup-container.sh b/setup-container.sh index 6fa52d8..1b98c49 100755 --- a/setup-container.sh +++ b/setup-container.sh @@ -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" - diff --git a/setup-kubetools.sh b/setup-kubetools.sh index 62aa726..3ecf031 100755 --- a/setup-kubetools.sh +++ b/setup-kubetools.sh @@ -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