-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add RSPM code detection for CentOS/RHEL/Fedora #81
Conversation
Nice. Looks promising. Now:
|
And I have it in mind, but I thought that "Could you help me for Fedora and maybe CentOS?" and a link to this file was an invitation to this.
|
Awesome. With that I suggest we a) reorder and b) shorten. Mocked code (about to go running, a few hours later than I meant) if ("VERSION_CODENAME" %in% rownames(osrel))
code <- osrel["VERSION_CODENAME", "value"]
else if ("REDHAT_SUPPORT_PRODUCT" %in% rownames(osrel)) {
# 'centos7' for CentOS/RHEL 7, 'centos8' for CentOS/RHEL 8 and Fedora
ver <- osrel["REDHAT_SUPPORT_PRODUCT_VERSION", "value"])
code <- paste0("centos", if (ver=="7") 7 else ver)
} |
Note that |
Thanks that's why I suggested the output and that is what I looked for -- must have missed it. But I was just out running and realized that in the fedora we put '32' in there. The else may need to be '8'. Edit And looking at your patch I see you reflect that. |
We need:
centos7
for CentOS 7 and RHEL 7.centos8
for CentOS 8, RHEL 8 and all Fedora.