Skip to content

Commit

Permalink
Avoid using apt-key command for the collector installation for Debian (
Browse files Browse the repository at this point in the history
…#269)

* Avoid using apt-key command for the collector installation for Debian

* Remove CentOS 7 from options
  • Loading branch information
keiko713 authored Jul 17, 2024
1 parent 3962b89 commit 2adce16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/CollectorPkgInstallInstructions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const CollectorDistroInstallInstructions: React.FunctionComponent<Pick<Props, 'k
installOpts = [
[ 'el9', 'el/9', 'RHEL / Rocky / OL 9' ],
[ 'el8', 'el/8', 'RHEL / Rocky / OL 8' ],
[ 'el7', 'el/7', 'RHEL / CentOS 7' ],
[ 'al2023', 'el/9', 'Amazon Linux 2023' ],
[ 'al2', 'el/7', 'Amazon Linux 2' ],
[ 'fedora37', 'fedora/37', 'Fedora 37' ],
Expand Down Expand Up @@ -108,8 +107,8 @@ sudo yum makecache
sudo yum install pganalyze-collector`
break
case 'deb':
instructions = `curl -L https://packages.pganalyze.com/pganalyze_signing_key.asc | sudo apt-key add -
echo "deb [arch=amd64] https://packages.pganalyze.com/${distro}/ stable main" | sudo tee /etc/apt/sources.list.d/pganalyze_collector.list
instructions = `curl -L https://packages.pganalyze.com/pganalyze_signing_key.asc -o /etc/apt/keyrings/pganalyze_signing_key.asc
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/pganalyze_signing_key.asc] https://packages.pganalyze.com/${distro}/ stable main" | sudo tee /etc/apt/sources.list.d/pganalyze_collector.list
sudo apt-get update
sudo apt-get install pganalyze-collector`
break
Expand Down

0 comments on commit 2adce16

Please sign in to comment.