mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fixing white space and formatting
This commit is contained in:
parent
72e55029ef
commit
14013d5d1b
@ -25,15 +25,12 @@
|
||||
|
||||
#set -x
|
||||
|
||||
#Check distribution version for RHEL
|
||||
if [ -f '/etc/redhat-release' ];
|
||||
then
|
||||
#Check RHEL version for 7
|
||||
if grep 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release > /dev/null
|
||||
then
|
||||
# Check distribution version for RHEL
|
||||
if [ -f '/etc/redhat-release' ]; then
|
||||
# Check RHEL version for 7
|
||||
if grep 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release > /dev/null; then
|
||||
# Check if cgroups if co-mounted
|
||||
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ];
|
||||
then
|
||||
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then
|
||||
# cgroups co-mounted. Requires remount
|
||||
umount /sys/fs/cgroup/cpu,cpuacct
|
||||
rm /sys/fs/cgroup/cpu
|
||||
@ -44,8 +41,7 @@ then
|
||||
mount -t cgroup -o cpu cpu "/sys/fs/cgroup/cpu"
|
||||
mount -t cgroup -o cpuacct cpuacct "/sys/fs/cgroup/cpuacct"
|
||||
# Verify that cgroups are not co-mounted
|
||||
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ];
|
||||
then
|
||||
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then
|
||||
echo "cgroups still co-mounted"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user