mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-31 01:34:06 +02:00
.deb: let user install icinga-archive-keyring package
This commit is contained in:
parent
d667e10439
commit
0b733ea23f
@ -9,8 +9,18 @@ commands:
|
|||||||
#### Debian
|
#### Debian
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
|
apt update
|
||||||
echo 'deb http://packages.icinga.com/debian icinga-stretch main' > etc/apt/sources.list.d/icinga.list
|
apt -y install apt-transport-https wget
|
||||||
|
|
||||||
|
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 [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian icinga-${DIST} main" > \
|
||||||
|
/etc/apt/sources.list.d/${DIST}-icinga.list
|
||||||
```
|
```
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
@ -21,8 +31,18 @@ apt-get install icingabeat
|
|||||||
#### Ubuntu
|
#### Ubuntu
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
wget -O - https://packages.icinga.com/icinga.key | apt-key add -
|
apt update
|
||||||
echo 'deb http://packages.icinga.com/ubuntu icinga-xenial main' > etc/apt/sources.list.d/icinga.list
|
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"
|
||||||
|
|
||||||
|
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 [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/ubuntu icinga-${DIST} main" > \
|
||||||
|
/etc/apt/sources.list.d/${DIST}-icinga.list
|
||||||
```
|
```
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user