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
d52e98a8
Commit
d52e98a8
authored
Apr 26, 2019
by
Marco Clemencic
Browse files
Merge branch 'tlatham/host_os' into 'master'
Add RHEL as SL/CentOS compatible OS See merge request
!8
parents
d313c8f9
afb9c30c
Pipeline
#826482
passed with stages
in 1 minute and 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
data/bin/host_os
View file @
d52e98a8
...
...
@@ -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