Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 8a4a52b

Browse files
authored
Merge pull request #160 from resouer/fix-centos-version
Fix centos version to 7.*
2 parents 7e71367 + 922b8a6 commit 8a4a52b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/hypernetes/util.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ function kube::util::verify_system() {
2323

2424
version=$(cat /etc/redhat-release)
2525
if [[ "$version" == "" ]]; then
26-
echo "Only CentOS 7.2 is supported."
26+
echo "Only CentOS 7 or newer is supported."
2727
exit 1
2828
fi
2929

30-
if ! [[ "$version" =~ "CentOS Linux release 7.2" ]]; then
31-
echo "Only CentOS 7.2 is supported."
30+
if ! [[ "$version" =~ "CentOS Linux release 7." ]]; then
31+
echo "Only CentOS 7 or newer is supported."
3232
echo "Run 'yum -y update' upgrade the system."
3333
exit 1
3434
fi

0 commit comments

Comments
 (0)