Skip to content

Commit

Permalink
fix(install): Removed install_aws_cli2 function from Debian post inst…
Browse files Browse the repository at this point in the history
…allation script which installs a Debian package within a Debian package causing errors, as well as errors when an aws cli is already installed (#6945) (#1088) (#1089)

(cherry picked from commit 35d0735)

Co-authored-by: Ashley Kleynhans <ashleykleynhans@users.noreply.github.com>
  • Loading branch information
mergify[bot] and ashleykleynhans authored Apr 18, 2024
1 parent 456a2f7 commit 626849f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions rosco-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,9 @@ install_helm3() {
mv /usr/local/bin/helm /usr/local/bin/helm3
}

install_aws_cli2() {
if [ "$ARCH" = "amd64" ]; then
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
elif [ "$ARCH" = "arm64" ]; then
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb"
fi
unzip awscliv2.zip
./aws/install
rm -rf awscliv2.zip ./aws
dpkg -i session-manager-plugin.deb
rm session-manager-plugin.deb
}

create_temp_dir
install_packer
install_helm3
install_helm
install_aws_cli2
remove_temp_dir
install --mode=755 --owner=spinnaker --group=spinnaker --directory /var/log/spinnaker/rosco

0 comments on commit 626849f

Please sign in to comment.