Skip to content

Commit

Permalink
Remove brew in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rbamos committed Jul 9, 2024
1 parent 546f58d commit f186dfa
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,17 @@ if ! which brew > /dev/null ; then
fi
fi

# The AWS CLI requires python
brew install python
# The AWS credential files require the AWS CLI to be installed
brew install awscli
if [[ "$kernel_name" == "Darwin" ]]; then
# The AWS CLI requires python
brew install python
# The AWS credential files require the AWS CLI to be installed
brew install awscli
elif [[ "$kernel_name" == "Linux" ]]; then
# The AWS CLI requires python
sudo apt install python
# The AWS credential files require the AWS CLI to be installed
sudo apt install awscli
fi

# If using an M1 machine, add a symlink for the AWS credential files to where Leapp expects them
if [[ "$kernel_name" == "Darwin" ]] && [[ $(uname -m) == 'arm64' ]]; then
Expand All @@ -88,7 +95,14 @@ elif [[ "$kernel_name" == "Linux" ]] && ! dpkg -l session-manager-plugin; then
fi

# Install Leapp CLI
brew install Noovolari/brew/leapp-cli
if [[ "$kernel_name" == "Darwin" ]]; then
brew install Noovolari/brew/leapp-cli
else [[ "$kernel_name" == "Linux" ]]
# Whenever a new Leapp version is updated, this link will break
curl https://asset.noovolari.com/latest/Leapp_0.26.1_amd64.deb -o ~/Downloads/leapp.deb
sudo dpkg -i ~/Downloads/leapp.deb
npm install -g @noovolari/leapp-cli
fi

if [[ "$kernel_name" == "Darwin" ]]; then
# Leapp integration setup
Expand Down

0 comments on commit f186dfa

Please sign in to comment.