File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
cli/src/pcluster/resources/imagebuilder Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ phases:
131
131
set -v
132
132
OS='{{ build.OperatingSystemName.outputs.stdout }}'
133
133
134
- if [ `echo "${!OS}" | grep -E '^(alinux|centos| rhel|rocky)'` ]; then
134
+ if [ `echo "${!OS}" | grep -E '^(alinux|rhel|rocky)'` ]; then
135
135
PLATFORM='RHEL'
136
136
elif [ `echo "${!OS}" | grep -E '^ubuntu'` ]; then
137
137
PLATFORM='DEBIAN'
@@ -169,7 +169,7 @@ phases:
169
169
set -v
170
170
if [ ${CfnParamUpdateOsAndReboot} == false ]; then
171
171
RELEASE='{{ build.OperatingSystemRelease.outputs.stdout }}'
172
- if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|centos| ubuntu|rhel|rocky)'` ]; then
172
+ if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|ubuntu|rhel|rocky)'` ]; then
173
173
echo "This component does not support '${!RELEASE}'. Failing build."
174
174
exit {{ FailExitCode }}
175
175
fi
@@ -253,12 +253,6 @@ phases:
253
253
fi
254
254
yum -y update krb5-libs
255
255
yum -y groupinstall development && sudo yum -y install curl wget jq
256
-
257
-
258
- if [[ ${!OS} =~ ^centos ]]; then
259
- /bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
260
- grub2-mkconfig -o /boot/grub2/grub.cfg
261
- fi
262
256
elif [[ ${!PLATFORM} == DEBIAN ]]; then
263
257
if [[ "${CfnParamUpdateOsAndReboot}" == "false" ]]; then
264
258
# disable apt-daily.timer to avoid dpkg lock
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ phases:
69
69
set -v
70
70
OS='{{ build.OperatingSystemName.outputs.stdout }}'
71
71
72
- if [ `echo "${!OS}" | grep -E '^(alinux|centos| rhel|rocky)'` ]; then
72
+ if [ `echo "${!OS}" | grep -E '^(alinux|rhel|rocky)'` ]; then
73
73
PLATFORM='RHEL'
74
74
elif [ `echo "${!OS}" | grep -E '^ubuntu'` ]; then
75
75
PLATFORM='DEBIAN'
@@ -85,7 +85,7 @@ phases:
85
85
- |
86
86
set -v
87
87
RELEASE='{{ build.OperatingSystemRelease.outputs.stdout }}'
88
- if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|centos| ubuntu|rhel|rocky)'` ]; then
88
+ if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|ubuntu|rhel|rocky)'` ]; then
89
89
echo "This component does not support '${!RELEASE}'. Failing build."
90
90
exit {{ FailExitCode }}
91
91
fi
You can’t perform that action at this time.
0 commit comments