index : archlinux32-keyring | |
Archlinux32 pacman keyring | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-01-13 09:18:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-13 09:18:40 +0100 |
commit | 3adf8b905109fb9df17cfebb505edc1c2fff394d (patch) | |
tree | babd8f7758c0cd09e7e7ae2a9df001d6ffaadf64 | |
parent | d8a006b4f28917c7e675d2eeea5c925a5171e334 (diff) |
-rwxr-xr-x | update-keys | 24 |
diff --git a/update-keys b/update-keys index 5c7592a..6dc3601 100755 --- a/update-keys +++ b/update-keys @@ -32,8 +32,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[@]:1}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} </dev/null | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" </dev/null | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} </dev/null | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" </dev/null | \ + ${GPG} --import &>/dev/null printf 'minimize\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} ${GPG} --yes --lsign-key ${keyid} &>/dev/null @@ -45,8 +47,10 @@ ${GPG} --import-ownertrust < archlinux32-trusted 2>/dev/null while read -ra data; do keyid="${data[0]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null done < packager-keyids while read -ra data; do keyid="${data[0]}" @@ -66,8 +70,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then @@ -82,8 +88,10 @@ while read -ra data; do keyid="${data[0]}" username="${data[2]}" ${GPG} --recv-keys ${keyid} &>/dev/null - gpg ${GPG_OPTIONS} -a --export ${keyid} | ${GPG} --import &>/dev/null - ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | ${GPG} --import &>/dev/null + gpg ${GPG_OPTIONS} -a --export ${keyid} | \ + ${GPG} --import &>/dev/null + ssh buildmaster "gpg ${GPG_OPTIONS} -a --export ${keyid}" | \ + ${GPG} --import &>/dev/null printf 'clean\nquit\ny\n' | \ ${GPG} --command-fd 0 --edit-key ${keyid} if ! ${GPG} --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then |