Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb Core Software
LbEnvBootstrap
Commits
afb9c30c
Commit
afb9c30c
authored
Apr 26, 2019
by
Thomas Edward Latham
Browse files
Add RHEL as SL/CentOS compatible OS
parent
d313c8f9
Pipeline
#826427
passed with stage
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
data/bin/host_os
View file @
afb9c30c
...
...
@@ -11,11 +11,11 @@
###############################################################################
if
[
-e
/etc/redhat-release
]
;
then
if
grep
-q
-E
'(CentOS|Scientific Linux).*release 7'
/etc/redhat-release
;
then
if
grep
-q
-E
'(CentOS|Scientific
Linux|Red Hat Enterprise
Linux).*release 7'
/etc/redhat-release
;
then
_os
=
centos7
elif
grep
-q
-E
'(CentOS|Scientific Linux).*release 6'
/etc/redhat-release
;
then
elif
grep
-q
-E
'(CentOS|Scientific
Linux|Red Hat Enterprise
Linux).*release 6'
/etc/redhat-release
;
then
_os
=
slc6
elif
grep
-q
-E
'(CentOS|Scientific Linux).*release 5'
/etc/redhat-release
;
then
elif
grep
-q
-E
'(CentOS|Scientific
Linux|Red Hat Enterprise
Linux).*release 5'
/etc/redhat-release
;
then
_os
=
slc5
fi
elif
[
-e
/etc/lsb-release
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment