1
0

initial commit

This commit is contained in:
2025-06-05 11:01:19 +03:00
commit 48f13f97a3
297 changed files with 7136 additions and 0 deletions

45
scripts-extra/gpg-batch.sh Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/sh
set -ef
: "${GPG_KEYSERVER:=hkps://keyserver.ubuntu.com}"
[ $# != 0 ] || exit 1
case "$1" in
1 | start )
[ -n "${GNUPGHOME}" ] || exit 1
[ -d "${GNUPGHOME}" ] || exit 1
cd "${GNUPGHOME}"
cat > gpg.conf <<-EOF
quiet
batch
trust-model always
no-auto-check-trustdb
ignore-time-conflict
keyid-format 0xlong
keyserver ${GPG_KEYSERVER}
EOF
cat > dirmngr.conf <<-EOF
quiet
batch
keyserver ${GPG_KEYSERVER}
EOF
gpg --update-trustdb >/dev/null 2>&1
gpg --list-keys >/dev/null 2>&1
dirmngr >/dev/null 2>&1
;;
0 | stop )
[ -n "${GNUPGHOME}" ] || exit 0
[ -d "${GNUPGHOME}" ] || exit 1
cd "${GNUPGHOME}"
gpgconf --kill all
cd /
rm -rf "${GNUPGHOME}"
;;
* )
exit 1
;;
esac
exit 0