Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ If you have any problems with this installer, or if using an unsupported OS plea
| Debian | Yes | Yes | Debian 12 |
| Windows | Yes | Yes | WSL w/ Ubuntu |
| MacOS | Yes | Yes | macOS 14 |
| Arch Linux | Yes | No | Yes |
| Arch Linux | Yes | Yes | Yes |

<br>

Expand Down
12 changes: 2 additions & 10 deletions interact/account-helpers/aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,10 @@ if [[ "$(printf '%s\n' "$installed_version" "$AWSCliVersion" | sort -V | head -n
rm AWSCLIV2.pkg

elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
OS=$(detect_os)

# Install AWS CLI based on specific Linux distribution
if [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]] || [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
echo -e "${BGreen}Installing/Updating AWS CLI on $OS...${Color_Off}"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/tmp/awscliv2.zip"
cd /tmp
Expand Down
72 changes: 34 additions & 38 deletions interact/account-helpers/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,47 +63,43 @@ if [[ "$(printf '%s\n' "$installed_version" "$AzureCliVersion" | sort -V | head
# Handle Linux installation/update
elif [[ $BASEOS == "Linux" ]]; then
echo -e "${BGreen}Installing Azure CLI (az)...${Color_Off}"
sudo apt-get update -qq
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y -qq

if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
OS=$(detect_os)

if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
echo -e "${BGreen}Installing Azure CLI via pip on Arch...${Color_Off}"
pip install azure-cli
elif [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
sudo apt-get update -qq
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y -qq

AZ_REPO=$(lsb_release -cs)
if [[ $AZ_REPO == "kali-rolling" ]]; then
check_version=$(cat /proc/version | awk '{ print $6 $7 }' | tr -d '()' | cut -d . -f 1)
case $check_version in
Debian10)
AZ_REPO="buster"
;;
Debian11)
AZ_REPO="bullseye"
;;
Debian12)
AZ_REPO="bookworm"
;;
*)
echo "Unknown Debian version. Exiting."
exit 1
;;
esac
fi
fi

AZ_REPO=$(lsb_release -cs)
if [[ $AZ_REPO == "kali-rolling" ]]; then
check_version=$(cat /proc/version | awk '{ print $6 $7 }' | tr -d '()' | cut -d . -f 1)
case $check_version in
Debian10)
AZ_REPO="buster"
;;
Debian11)
AZ_REPO="bullseye"
;;
Debian12)
AZ_REPO="bookworm"
;;
*)
echo "Unknown Debian version. Exiting."
exit 1
;;
esac
fi
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list

curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list

sudo apt-get update -qq
sudo apt-get install azure-cli -y -qq

elif [[ $OS == "Fedora" ]]; then
echo "Needs Conversation for Fedora"
sudo apt-get update -qq
sudo apt-get install azure-cli -y -qq
elif [[ $OS == "Fedora" ]]; then
echo "Needs Conversation for Fedora"
fi
fi

echo "Azure CLI updated to version $AzureCliVersion."
Expand Down
10 changes: 1 addition & 9 deletions interact/account-helpers/do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,7 @@ if [[ "$(printf '%s\n' "$installed_version" "$DoctlVersion" | sort -V | head -n
packer plugins install github.com/digitalocean/digitalocean

elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
OS=$(detect_os)
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
sudo pacman -Syu doctl --noconfirm
elif [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
Expand Down
10 changes: 1 addition & 9 deletions interact/account-helpers/exoscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,7 @@ if [[ "$(printf '%s\n' "$installed_version" "$ExoscaleCliVersion" | sort -V | he
brew install exoscale-cli

elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
OS=$(detect_os)

if [[ $OS == "Fedora" ]] || [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
echo -e "${BGreen}Installing/Updating exo CLI on $OS...${Color_Off}"
Expand Down
33 changes: 21 additions & 12 deletions interact/account-helpers/gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,30 @@ if [[ "$(printf '%s\n' "$installed_version" "$GCloudCliVersion" | sort -V | head
echo -e "${Yellow}gcloud CLI is either not installed or version is lower than the recommended version in ~/.axiom/interact/includes/vars.sh${Color_Off}"
echo "Installing/updating gcloud CLI to version $GCloudCliVersion..."

sudo apt update && sudo apt-get install apt-transport-https ca-certificates gnupg curl -qq -y
# Add the Google Cloud GPG key and fix missing GPG key issue
echo "Adding the Google Cloud public key..."
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
OS=$(detect_os)
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
echo -e "${BGreen}Installing gcloud CLI via standalone archive on Arch...${Color_Off}"
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz
tar -xf google-cloud-cli-linux-x86_64.tar.gz -C "$HOME"
"$HOME"/google-cloud-sdk/install.sh --quiet
rm google-cloud-cli-linux-x86_64.tar.gz
else
sudo apt update && sudo apt-get install apt-transport-https ca-certificates gnupg curl -qq -y
# Add the Google Cloud GPG key and fix missing GPG key issue
echo "Adding the Google Cloud public key..."
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg

# Add the correct repository entry for Google Cloud SDK
echo "Adding Google Cloud SDK to sources list..."
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Add the correct repository entry for Google Cloud SDK
echo "Adding Google Cloud SDK to sources list..."
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Clean up duplicate entries
clean_gcloud_repos
# Clean up duplicate entries
clean_gcloud_repos

# Update package list and install Google Cloud SDK
sudo apt-get update -qq
sudo apt-get install google-cloud-sdk -y -qq
# Update package list and install Google Cloud SDK
sudo apt-get update -qq
sudo apt-get install google-cloud-sdk -y -qq
fi
echo "Installing Packer Plugin..."
packer plugins install github.com/hashicorp/googlecompute
fi
Expand Down
10 changes: 1 addition & 9 deletions interact/account-helpers/hetzner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,7 @@ if [[ "$(printf '%s\n' "$installed_version" "$HetznerCliVersion" | sort -V | hea

# Handle Linux installation/update
elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
OS=$(detect_os)

# Install or update hcloud on different Linux distributions
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
Expand Down
24 changes: 5 additions & 19 deletions interact/account-helpers/ibm-classic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,11 @@ if [[ "$(printf '%s\n' "$installed_version" "$IBMCloudCliVersion" | sort -V | he
echo -e "${BGreen}Installing ibmcloud-cli...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/osx | sh
elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
echo "Needs Conversation for Arch or ManjaroLinux"
elif [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
echo -e "${BGreen}Installing ibmcloud-cli on Linux...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
echo -e "${BGreen}Installing ibmcloud sl (SoftLayer) plugin...${Color_Off}"
ibmcloud plugin install sl -q -f
elif [[ $OS == "Fedora" ]]; then
echo "Needs Conversation for Fedora"
fi
OS=$(detect_os)
echo -e "${BGreen}Installing ibmcloud-cli on Linux...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
echo -e "${BGreen}Installing ibmcloud sl (SoftLayer) plugin...${Color_Off}"
ibmcloud plugin install sl -q -f
fi

echo "ibmcloud-cli updated to version $IBMCloudCliVersion."
Expand Down
20 changes: 3 additions & 17 deletions interact/account-helpers/ibm-vpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,9 @@ if [[ "$(printf '%s\n' "$installed_version" "$IBMCloudCliVersion" | sort -V | he
echo -e "${BGreen}Installing ibmcloud-cli...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/osx | sh
elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
fi
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
echo "Needs Conversation for Arch or ManjaroLinux"
elif [[ $OS == "Ubuntu" ]] || [[ $OS == "Debian" ]] || [[ $OS == "Linuxmint" ]] || [[ $OS == "Parrot" ]] || [[ $OS == "Kali" ]] || [[ $OS == "unknown-Linux" ]] || [[ $OS == "UbuntuWSL" ]]; then
echo -e "${BGreen}Installing ibmcloud-cli on Linux...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
elif [[ $OS == "Fedora" ]]; then
echo "Needs Conversation for Fedora"
fi
OS=$(detect_os)
echo -e "${BGreen}Installing ibmcloud-cli on Linux...${Color_Off}"
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
fi

echo "ibmcloud-cli updated to version $IBMCloudCliVersion."
Expand Down
6 changes: 1 addition & 5 deletions interact/account-helpers/linode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ if [[ "$acc" == "n" ]]; then
if [ $BASEOS == "Mac" ]; then
open "https://www.linode.com/lp/refer/?r=71f79f7e02534d6f673cbc8a17581064e12ac27d"
elif [ $BASEOS == "Linux" ]; then
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
BASEOS="Linux"
fi
OS=$(detect_os)
if [ $OS == "Arch" ] || [ $OS == "ManjaroLinux" ]; then
sudo pacman -Syu xdg-utils --noconfirm
else
Expand Down
9 changes: 1 addition & 8 deletions interact/account-helpers/scaleway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,7 @@ if [[ "$(printf '%s\n' "$installed_version" "$ScalewayCliVersion" | sort -V | he
echo -e "${BGreen}Installing Scaleway CLI (scw)...${Color_Off}"
brew install scw
elif [[ $BASEOS == "Linux" ]]; then
if uname -a | grep -qi "Microsoft"; then
OS="UbuntuWSL"
else
OS=$(lsb_release -i 2>/dev/null | awk '{ print $3 }')
if ! command -v lsb_release &> /dev/null; then
OS="unknown-Linux"
fi
fi
OS=$(detect_os)

# Install or update Scaleway CLI for Linux
if [[ $OS == "Arch" ]] || [[ $OS == "ManjaroLinux" ]]; then
Expand Down
Loading