The RHEL 7 and RHEL 6 optional repos have different names. This enables
the correct repo depending on the release.
Change-Id: I6772c9903a5b9e98cb870d586629564126a6119a
| ... | ... |
@@ -246,7 +246,12 @@ if [[ is_fedora && $DISTRO =~ (rhel) ]]; then |
| 246 | 246 |
|
| 247 | 247 |
# ... and also optional to be enabled |
| 248 | 248 |
is_package_installed yum-utils || install_package yum-utils |
| 249 |
- sudo yum-config-manager --enable rhel-6-server-optional-rpms |
|
| 249 |
+ if [[ $DISTRO =~ (rhel7) ]]; then |
|
| 250 |
+ OPTIONAL_REPO=rhel-7-server-optional-rpms |
|
| 251 |
+ else |
|
| 252 |
+ OPTIONAL_REPO=rhel-6-server-optional-rpms |
|
| 253 |
+ fi |
|
| 254 |
+ sudo yum-config-manager --enable ${OPTIONAL_REPO}
|
|
| 250 | 255 |
|
| 251 | 256 |
fi |
| 252 | 257 |
|