sapconf/SOURCES/sapconf-identify-eus-sap-ch...

13 lines
811 B
Plaintext

diff -up sapconf-0.98/sapconf.identify-eus-sap-channel sapconf-0.98/sapconf
--- sapconf-0.98/sapconf.identify-eus-sap-channel 2017-09-11 14:25:35.090406132 +0200
+++ sapconf-0.98/sapconf 2017-09-11 14:27:06.529971856 +0200
@@ -703,7 +703,7 @@ fi
# Checks if system is subscribed to RHEL for SAP Channel
function check_rhn() {
-if yum repolist | egrep -q "rhel-$(uname -m)-server-sap|rhel-sap-for-rhel-$(awk '{print $7}' /etc/redhat-release | cut -c -1)-server-rpms"; then
+if yum repolist | egrep -q "rhel-sap-for-rhel-7-server-eus-rpms|rhel-$(uname -m)-server-sap|rhel-sap-for-rhel-$(awk '{print $7}' /etc/redhat-release | cut -c -1)-server-rpms"; then
out "RHEL system subscribed to RHEL for SAP channel ... OK"
else
out "RHEL system not subscribed to RHEL for SAP channel ... WARNING"