Skip to content
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

Fixes for Red Hat Enterprise Linux 7 and CentOS 6 #3846

Merged
merged 2 commits into from
Aug 18, 2017
Merged

Fixes for Red Hat Enterprise Linux 7 and CentOS 6 #3846

merged 2 commits into from
Aug 18, 2017

Conversation

McG800
Copy link
Contributor

@McG800 McG800 commented Aug 12, 2017

RHEL uses "rhel" in the ID field in /etc/os-release. We'll leave
"redhat" in the script just in case.

Also, RHEL uses a two digit version number in the VERSION_ID field. So
instead of looking for just "7", look for anything that starts with "7".
This should fix RHEL installations as well as not break anything
with CentOS.

"lsb_release -s -r" returns a two digit version number (at least on recent CentOS releases) while the script is looking for a single digit version. We'll change the script so that it only looks for the version starting with 6. This fixes recent releases of CentOS, while also not breaking previous versions that may have used a single digit.

RHEL uses "rhel" in the ID field in /etc/os-release. We'll leave
"redhat" in the script just in case.

Also, RHEL uses a two digit version number in the VERSION_ID field. So
instead of looking for just "7", look for anything that starts with "7".
This should fix RHEL installations as well as not break anything
with CentOS.
@McG800 McG800 requested a review from snipe as a code owner August 12, 2017 02:43
@McG800 McG800 changed the title Changes for Red Hat Enterprise Linux. Fixes for Red Hat Enterprise Linux. Aug 12, 2017
"lsb_release -s -r" returns a two digit version number (at least on recent CentOS releases) while the script is looking for a single digit version. We'll change the script so that it only looks for the version starting with 6. This fixes recent releases of CentOS, while also not breaking previous versions that may have used a single digit.
@McG800 McG800 changed the title Fixes for Red Hat Enterprise Linux. Fixes for Red Hat Enterprise Linux 7 and CentOS 6 Aug 12, 2017
@snipe snipe merged commit 481143b into snipe:develop Aug 18, 2017
@snipe
Copy link
Owner

snipe commented Aug 18, 2017

Thanks!

gibsonjoshua55 pushed a commit to gibsonjoshua55/snipe-it that referenced this pull request Aug 22, 2017
* Changes for Red Hat Enterprise Linux.

RHEL uses "rhel" in the ID field in /etc/os-release. We'll leave
"redhat" in the script just in case.

Also, RHEL uses a two digit version number in the VERSION_ID field. So
instead of looking for just "7", look for anything that starts with "7".
This should fix RHEL installations as well as not break anything
with CentOS.

* Fixes issue snipe#3079.

"lsb_release -s -r" returns a two digit version number (at least on recent CentOS releases) while the script is looking for a single digit version. We'll change the script so that it only looks for the version starting with 6. This fixes recent releases of CentOS, while also not breaking previous versions that may have used a single digit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants