serve-gpgit.sh 344 B

123456789101112
  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. # log level: notice
  8. exec socat -v -d -d -T4 tcp-l:6156,fork exec:/invoke-gpgit.sh