From 55cb8972bbead1b7819ce75257f33adfa116fad5 Mon Sep 17 00:00:00 2001 From: Hugo Shaka Date: Tue, 19 Mar 2024 19:39:31 -0400 Subject: [PATCH] jq has been missing in the installer scripts (#39601) Co-authored-by: James Nguyen --- api/types/installers/agentless-installer.sh.tmpl | 6 +++--- api/types/installers/installer.sh.tmpl | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/api/types/installers/agentless-installer.sh.tmpl b/api/types/installers/agentless-installer.sh.tmpl index 61a1628ff40f7..20893c0e2353e 100644 --- a/api/types/installers/agentless-installer.sh.tmpl +++ b/api/types/installers/agentless-installer.sh.tmpl @@ -139,7 +139,7 @@ install_teleport() { fi else # no automatic upgrades - sudo apt-get install -y "$TELEPORT_PACKAGE" + sudo apt-get install -y "$TELEPORT_PACKAGE" jq fi elif [ "$ID" = "amzn" ] || [ "$ID" = "rhel" ]; then @@ -165,7 +165,7 @@ install_teleport() { fi else # no automatic upgrades - sudo yum install -y "$TELEPORT_PACKAGE" + sudo yum install -y "$TELEPORT_PACKAGE" jq fi elif [ "$ID" = "sles" ] || [ "$ID" = "opensuse-tumbleweed" ] || [ "$ID" = "opensuse-leap" ]; then @@ -192,7 +192,7 @@ install_teleport() { fi else # no automatic upgrades - sudo zypper --non-interactive install -y "$TELEPORT_PACKAGE" + sudo zypper --non-interactive install -y "$TELEPORT_PACKAGE" jq fi else echo "Unsupported distro: $ID" diff --git a/api/types/installers/installer.sh.tmpl b/api/types/installers/installer.sh.tmpl index 1ba6aa865b58c..d8d1f30e149eb 100644 --- a/api/types/installers/installer.sh.tmpl +++ b/api/types/installers/installer.sh.tmpl @@ -86,7 +86,7 @@ on_gcp() { fi else # no automatic upgrades - sudo apt-get install -y "$TELEPORT_PACKAGE" + sudo apt-get install -y "$TELEPORT_PACKAGE" jq fi elif [ "$ID" = "amzn" ] || [ "$ID" = "rhel" ]; then @@ -112,7 +112,7 @@ on_gcp() { fi else # no automatic upgrades - sudo yum install -y "$TELEPORT_PACKAGE" + sudo yum install -y "$TELEPORT_PACKAGE" jq fi elif [ "$ID" = "sles" ] || [ "$ID" = "opensuse-tumbleweed" ] || [ "$ID" = "opensuse-leap" ]; then @@ -124,7 +124,6 @@ on_gcp() { sudo rpm --import "https://zypper.releases.teleport.dev/gpg" sudo zypper --non-interactive addrepo "$(rpm --eval "https://zypper.releases.teleport.dev/sles/$VERSION_ID/Teleport/%{_arch}/{{ .RepoChannel }}/teleport.repo")" sudo zypper --gpg-auto-import-keys refresh - sudo zypper --non-interactive install ${PACKAGE_LIST} # shellcheck disable=SC2050 if [ "{{ .AutomaticUpgrades }}" = "true" ]; then @@ -141,7 +140,7 @@ on_gcp() { fi else # no automatic upgrades - sudo zypper --non-interactive install -y "$TELEPORT_PACKAGE" + sudo zypper --non-interactive install -y "$TELEPORT_PACKAGE" jq fi else echo "Unsupported distro: $ID"