Skip to content

Commit

Permalink
.deb: let user install icinga-archive-keyring package
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Sep 3, 2024
1 parent 806a2ff commit 01087b9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions doc/02-Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ wget https://packages.icinga.com/centos/ICINGA-release.repo -O /etc/yum.repos.d/

```bash
apt update
apt -y install apt-transport-https wget gnupg
apt -y install apt-transport-https wget

wget -O - https://packages.icinga.com/icinga.key | apt-key add -
wget -O icinga-archive-keyring.deb "https://packages.icinga.com/icinga-archive-keyring_latest+debian$(
. /etc/os-release; echo "$VERSION_ID"
).deb"

apt install ./icinga-archive-keyring.deb

DIST=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release); \
echo "deb https://packages.icinga.com/debian icinga-${DIST} main" > \
Expand Down Expand Up @@ -147,9 +151,13 @@ zypper ref

```bash
apt update
apt -y install apt-transport-https wget gnupg
apt -y install apt-transport-https wget

wget -O icinga-archive-keyring.deb "https://packages.icinga.com/icinga-archive-keyring_latest+ubuntu$(
. /etc/os-release; echo "$VERSION_ID"
).deb"

wget -O - https://packages.icinga.com/icinga.key | apt-key add -
apt install ./icinga-archive-keyring.deb

. /etc/os-release; if [ ! -z ${UBUNTU_CODENAME+x} ]; then DIST="${UBUNTU_CODENAME}"; else DIST="$(lsb_release -c| awk '{print $2}')"; fi; \
echo "deb https://packages.icinga.com/ubuntu icinga-${DIST} main" > \
Expand Down

0 comments on commit 01087b9

Please sign in to comment.