Update setup-kubetools.sh

Amendment of MYOS var for CentOS OS, as well as indentation for HERE document for the repo creation
This commit is contained in:
Francisco Isgleas 2021-08-20 10:23:48 +02:00 committed by GitHub
parent 9ab48fd2b7
commit 57c445b564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ MYOS=$(hostnamectl | awk '/Operating/ { print $3 }')
OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
##### CentOS 7 config
if [ $MYOS = "centos" ]
if [ $MYOS = "CentOS" ]
then
echo RUNNING CENTOS CONFIG
cat <<EOF > /etc/yum.repos.d/kubernetes.repo