Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Dec 12, 2024
1 parent 3603352 commit 0ed882e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ phases:
- |
set -v
FILE=/etc/os-release
if [ -e ${FILE} ]; then
. ${FILE}
echo "${VERSION_ID}"
if [ -e ${!FILE} ]; then
. ${!FILE}
echo "${!VERSION_ID}"
else
echo "The file '${FILE}' does not exist. Failing test."
exit {{ "{{ FailExitCode }}" }}
echo "The file '${!FILE}' does not exist. Failing build."
exit {{ FailExitCode }}
fi
Expand Down Expand Up @@ -167,8 +167,8 @@ phases:
OS='{{ build.OperatingSystemName.outputs.stdout }}'
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
VERSION='{{ test.OperatingSystemVersion.outputs.stdout }}'
if [[ ${OS} == rhel9 ]]; then
echo ${VERSION} > /etc/yum/vars/releasever
if [[ ${!OS} == rhel9 ]]; then
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
fi
Expand Down

0 comments on commit 0ed882e

Please sign in to comment.