Skip to content

Commit

Permalink
jq has been missing in the installer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tunguyen9889 authored and github-actions committed Mar 19, 2024
1 parent be02b33 commit b2883dc
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 b2883dc

Please sign in to comment.