serve-gpgit.sh 471 B

1234567891011121314
  1. #!/bin/sh
  2. set -x
  3. printenv GNUPG_IMPORT | gpg --import --import-options import-show
  4. for fingerprint in $(gpg --list-keys --with-colons | grep '^fpr:' | cut -d ':' -f 10); do
  5. echo -e '5\ny\n' | gpg --command-fd 0 --batch --edit-key $fingerprint trust
  6. done
  7. # -d -d: log level notice
  8. # -T: inactivity timeout (before input at EOF?, default: none)
  9. # -t: reply timeout (after input at EOF, default: 0.5s)
  10. exec socat -d -d -T4 -t16 tcp-l:6156,fork exec:/invoke-gpgit.sh