From 626849fb20ae9840db5ae722dab1b12a48ba9584 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:06:07 +0000 Subject: [PATCH] fix(install): Removed install_aws_cli2 function from Debian post installation 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 35d07359b372e8acf212b500518e77cf43ae840c) Co-authored-by: Ashley Kleynhans --- rosco-web/pkg_scripts/postInstall.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/rosco-web/pkg_scripts/postInstall.sh b/rosco-web/pkg_scripts/postInstall.sh index ac9a4d297..6a2c1586e 100755 --- a/rosco-web/pkg_scripts/postInstall.sh +++ b/rosco-web/pkg_scripts/postInstall.sh @@ -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