Skip to content

Commit

Permalink
jq has been missing in the installer scripts (#39599)
Browse files Browse the repository at this point in the history
Co-authored-by: James Nguyen <janguyen@absolute.com>
  • Loading branch information
hugoShaka and tunguyen9889 committed Mar 19, 2024
1 parent 75528cb commit 73b2114
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 73b2114

Please sign in to comment.