Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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