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

Commit

Permalink
Merge pull request #160 from resouer/fix-centos-version
Browse files Browse the repository at this point in the history
Fix centos version to 7.*
  • Loading branch information
feiskyer authored Jan 7, 2017
2 parents 7e71367 + 922b8a6 commit 8a4a52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/hypernetes/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ function kube::util::verify_system() {

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

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

0 comments on commit 8a4a52b

Please sign in to comment.