From 6515539af48082bda532e74ee5a99b46e5e526d3 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Tue, 28 Feb 2017 09:38:37 +0900 Subject: [PATCH] update comments Signed-off-by: Teddysun --- bbr.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bbr.sh b/bbr.sh index 910fd47..c8cc1fe 100644 --- a/bbr.sh +++ b/bbr.sh @@ -111,18 +111,22 @@ check_bbr_status() { } install_elrepo() { - rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org + if centosversion 5; then echo -e "${red}Error:${plain} not supported CentOS 5." exit 1 - elif centosversion 6; then + fi + + rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org + + if centosversion 6; then rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm elif centosversion 7; then rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm fi if [ ! -f /etc/yum.repos.d/elrepo.repo ]; then - echo -e "${red}Error:${plain} Install ELRepo failed, please check it." + echo -e "${red}Error:${plain} Install elrepo failed, please check it." exit 1 fi }