Skip to content

Commit

Permalink
fix(install): fix packer version check in post install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
himanhsugusain committed Nov 12, 2024
1 parent f642c30 commit f70dfc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rosco-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ install_packer() {
PACKER_VERSION="1.10.1"
local packer_version="$(/usr/bin/packer --version)"
local packer_status=$?
if [ $packer_status -ne 0 ] || [ "$packer_version" != "$PACKER_VERSION" ]; then

if [ $packer_status -ne 0 ] || ! grep -q "$PACKER_VERSION" <<< "$packer_version" ; then
wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${ARCH}.zip
unzip -o "packer_${PACKER_VERSION}_linux_${ARCH}.zip" -d /usr/bin
fi
Expand Down

0 comments on commit f70dfc1

Please sign in to comment.