From c315c369e8916d7b9545d0101a91a22bdc93bd07 Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Mon, 18 Nov 2024 09:03:08 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Enable=20installer=20to=20run=20on?= =?UTF-8?q?=20Azure=20Cloud=20Shell=20(#499)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves https://github.com/mondoohq/installer/issues/498 Signed-off-by: Salim Afiune Maya --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 947e7cb4..73df3c17 100755 --- a/install.sh +++ b/install.sh @@ -163,8 +163,8 @@ if [ "$DISTRIBUTION" = "Darwin" ]; then OS="macOS" elif [ -f /etc/debian_version ] || [ "$DISTRIBUTION" == "Debian" ] || [ "$DISTRIBUTION" == "Ubuntu" ]; then OS="Debian" -elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ]; then - OS="AWSCloudShell" +elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ] || [ "$POWERSHELL_DISTRIBUTION_CHANNEL" == "CloudShell" ]; then + OS="CloudShell" elif [ -f /etc/redhat-release ] || [ "$DISTRIBUTION" == "RedHat" ] || [ "$DISTRIBUTION" == "CentOS" ] || [ "$DISTRIBUTION" == "Amazon" ] || [ "$DISTRIBUTION" == "AlmaLinux" ] || [ "$DISTRIBUTION" == "Rocky Linux" ]; then OS="RedHat" elif [ -f /etc/photon-release ] || [ "$DISTRIBUTION" == "Photon" ]; then @@ -761,7 +761,7 @@ elif [[ "$OS" = "Debian" ]]; then elif [[ "$OS" = "Suse" ]]; then configure_suse_installer -elif [[ "$OS" = "AWSCloudShell" ]]; then +elif [[ "$OS" = "CloudShell" ]]; then configure_cloudshell_installer else