author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 02 May 2024 16:02:45 +0300 | |
changeset 38 | 5c3fb23b9208 |
parent 1 | f497bf96ddc3 |
permissions | -rw-r--r-- |
1
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
#!/bin/bash |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
set -e |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
src=fluentbit |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
CODENAME=bookworm |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
|
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
cmd="curl -o /usr/share/keyrings/$src.asc https://packages.fluentbit.io/fluentbit.key" |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
eval $cmd |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
|
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
cat <<EOF >/etc/apt/sources.list.d/$src.list |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
# https://docs.fluentbit.io/manual/installation/linux/debian |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
# For new GPG key use: |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
# $cmd |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
|
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
deb [signed-by=/usr/share/keyrings/$src.asc] https://packages.fluentbit.io/debian/${CODENAME} ${CODENAME} main |
f497bf96ddc3
Adding Elastic& Fluenbit repos to deb with sign keys. Generalized code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
EOF |