diff --git a/usr/share/okconfig/client/linux/install_okagent.sh b/usr/share/okconfig/client/linux/install_okagent.sh index 9e27f86..ae66928 100644 --- a/usr/share/okconfig/client/linux/install_okagent.sh +++ b/usr/share/okconfig/client/linux/install_okagent.sh @@ -82,6 +82,8 @@ install_rhel() { if [[ $DISTRO =~ centos[567] ]]; then REPO=$(echo $DISTRO | sed 's/centos/rhel/g') + elif [[ $DISTRO =~ rhel[567] ]]; then + REPO=$(echo $DISTRO | egrep -o "[a-z]+[0-9]") #not sure if OK repo broken or this broken else REPO=$DISTRO fi