Compare commits

..

3 Commits

Author SHA1 Message Date
5c18873ddd add bing-gpt gateway 2023-04-16 21:13:26 +02:00
lassulus
9bd70fc9ba konsens: define isSystemUser & group 2023-04-15 16:43:27 +02:00
lassulus
95685a6743 kartei: add trust-gpg script 2023-04-15 16:43:27 +02:00

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
# usage: $0 # usage: $0
set -eu set -eu
WD=$(dirname "$(realpath "$0")") WD=$(dirname "$(realpath "$0")")
@ -8,6 +8,6 @@ for key in "$WD"/kmein/kmein.gpg "$WD"/lass/pgp/* "$WD"/makefu/pgp/* "$WD"/tv/pg
keyid=$(gpg --with-colons --fingerprint --import-options show-only --import "$key" | grep fpr | cut -d : -f 10 | head -1) keyid=$(gpg --with-colons --fingerprint --import-options show-only --import "$key" | grep fpr | cut -d : -f 10 | head -1)
gpg --import "$key" >&2 gpg --import "$key" >&2
printf '5\ny\n' | gpg --command-fd 0 --expert --edit-key "$keyid" trust >&2 printf '5\ny\n' | gpg --command-fd 0 --expert --edit-key "$keyid" trust >&2
PUBKEYS="${PUBKEYS}${keyid}\n" PUBKEYS="${PUBKEYS}$keyid\n"
done done
printf "$PUBKEYS" echo -ne "$PUBKEYS"