Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
563148e2
Commit
563148e2
authored
May 09, 2016
by
Hartnell Foster
Committed by
Stéphane Graber
May 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added OR statement for cases of ID = rhel in RHEL 7+
Signed-off-by:
Hartnell Foster
<
hartnell.foster@bbc.co.uk
>
parent
e1a2c96c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lxc-centos.in
templates/lxc-centos.in
+3
-2
No files found.
templates/lxc-centos.in
View file @
563148e2
...
@@ -137,8 +137,9 @@ if [ "${CPE_NAME}" != "" -a "${ID}" = "centos" -a "${VERSION_ID}" != "" ]
...
@@ -137,8 +137,9 @@ if [ "${CPE_NAME}" != "" -a "${ID}" = "centos" -a "${VERSION_ID}" != "" ]
then
then
centos_host_ver
=
${
VERSION_ID
}
centos_host_ver
=
${
VERSION_ID
}
is_centos
=
true
is_centos
=
true
elif
[
"
${
CPE_NAME
}
"
!=
""
-a
"
${
ID
}
"
=
"redhat"
-a
"
${
VERSION_ID
}
"
!=
""
]
elif
[
"
${
CPE_NAME
}
"
!=
""
-a
"
${
ID
}
"
=
"redhat"
-
o
"
${
ID
}
"
=
"rhel"
-
a
"
${
VERSION_ID
}
"
!=
""
]
then
then
# RHEL 7+ /etc/os-release ID = 'rhel', which doesn't enter this elif without the added OR statement
redhat_host_ver
=
${
VERSION_ID
}
redhat_host_ver
=
${
VERSION_ID
}
is_redhat
=
true
is_redhat
=
true
elif
[
-e
/etc/centos-release
]
elif
[
-e
/etc/centos-release
]
...
@@ -394,7 +395,7 @@ configure_centos_init()
...
@@ -394,7 +395,7 @@ configure_centos_init()
# power-status-changed - shutdown on SIGPWR
# power-status-changed - shutdown on SIGPWR
#
#
start on power-status-changed
start on power-status-changed
exec /sbin/shutdown -h now "SIGPWR received"
exec /sbin/shutdown -h now "SIGPWR received"
EOF
EOF
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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