Skip to content

Commit

Permalink
fix(install): Removed install_awscli2 function from Debian post insta…
Browse files Browse the repository at this point in the history
…ll script (#6278)
  • Loading branch information
ashleykleynhans authored Aug 20, 2024
1 parent 35a30d3 commit f4129a7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions clouddriver-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,6 @@ install_kubectl() {
fi
}

install_awscli2() {
if [ -d "/usr/local/aws-cli/v2/${AWS_CLI_VERSION}" ]; then
echo "awscli2 ${AWS_CLI_VERSION} is already installed"
else
echo "Installing awscli2 ${AWS_CLI_VERSION}"
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VERSION}.zip" -o "awscliv2.zip"

# This shouldn't usually exist unless the installation failed previously
if [ -d "./aws" ]; then
rm -rf ./aws
fi

unzip awscliv2.zip
./aws/install --update
rm -rf ./awscliv2.zip ./aws
fi

echo "Installing aws-iam-authenticator ${AWS_AIM_AUTHENTICATOR_VERSION}"
curl -s "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_AIM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_AIM_AUTHENTICATOR_VERSION}_linux_amd64" -o aws-iam-authenticator
chmod +x ./aws-iam-authenticator
mv ./aws-iam-authenticator /usr/local/bin/aws-iam-authenticator
}

install_kubectl
install_awscli2

install --mode=755 --owner=spinnaker --group=spinnaker --directory /var/log/spinnaker/clouddriver

0 comments on commit f4129a7

Please sign in to comment.