Skip to content

Commit

Permalink
jq has been missing in the installer scripts (#39601)
Browse files Browse the repository at this point in the history
Co-authored-by: James Nguyen <[email protected]>
  • Loading branch information
hugoShaka and tunguyen9889 authored Mar 19, 2024
1 parent fe5aff3 commit 55cb897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions api/types/installers/agentless-installer.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down
7 changes: 3 additions & 4 deletions api/types/installers/installer.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 55cb897

Please sign in to comment.