Skip to content

Commit

Permalink
Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
rbamos committed Jul 12, 2024
1 parent 27cf79b commit 1ecd18e
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions rollback_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,36 @@ while true; do
esac
done

# Uninstall Leapp CLI
brew uninstall Noovolari/brew/leapp-cli
# Uninstall Session Manager Plugin
brew uninstall --cask session-manager-plugin
# Uninstall AWS CLI
brew uninstall awscli
# Remove AWS credential files
rm -rf ~/.aws
# Uninstall python
brew uninstall python --ignore-dependencies python
# Uninstall homebrew
sudo /bin/bash -cf "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
# Uninstall the Xcode CLT (this may be installed as part of homebrew)
sudo rm -rf /Library/Developer/CommandLineTools
kernel_name=$(uname -s)

if [[ "$kernel_name" == 'Darwin' ]]; then
# Uninstall Leapp CLI
brew uninstall Noovolari/brew/leapp-cli
# Uninstall Session Manager Plugin
brew uninstall --cask session-manager-plugin
# Uninstall AWS CLI
brew uninstall awscli
# Remove AWS credential files
rm -rf ~/.aws
# Uninstall python
brew uninstall python --ignore-dependencies python
# Uninstall homebrew
sudo /bin/bash -cf "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
# Uninstall the Xcode CLT (this may be installed as part of homebrew)
sudo rm -rf /Library/Developer/CommandLineTools
elif [[ "$kernel_name" == 'Linux' ]]; then
# Uninstall Leapp CLI
sudo npm uninstall -g @noovolari/leapp-cli
# Remove node
sudo apt remove -y npm
sudo apt remove -y nodejs
# Remove leapp
sudo dpkg -r leapp
sudo dpkg -P leapp
# Remove session-manager-plugin
sudo dpkg -r session-manager-plugin
sudo dpkg -P session-manager-plugin
# Remove AWS CLI
sudo apt remove -y awscli
# Don't remove python!
fi

0 comments on commit 1ecd18e

Please sign in to comment.