Skip to content

Commit

Permalink
jq has been missing in the installer scripts (#39594)
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Shaka <[email protected]>
Co-authored-by: James Nguyen <[email protected]>
Co-authored-by: James (Anh-Tu) Nguyen <[email protected]>
  • Loading branch information
3 people authored Mar 19, 2024
1 parent c99969e commit c044023
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 @@ -140,7 +140,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 @@ -166,7 +166,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 @@ -193,7 +193,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 @@ -87,7 +87,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 @@ -113,7 +113,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 @@ -125,7 +125,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 @@ -142,7 +141,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 c044023

Please sign in to comment.