You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
540 B

  1. #!/bin/bash
  2. set -e
  3. tmpdir=$(mktemp --tmpdir -d refresh-obs-keys-XXXXXXX)
  4. trap 'rm -rf "${tmpdir}"' EXIT
  5. self=`readlink -f "$0"`
  6. basedir=`dirname "${self}"`
  7. keydir="${basedir}/single-keys"
  8. cd "${tmpdir}"
  9. obs_get() {
  10. local proj="$1"
  11. local target="$2"
  12. echo "Fetching key for ${proj}"
  13. osc signkey --notravers "${proj}" > "public.key"
  14. mv "public.key" "${target}"
  15. }
  16. obs_get "home:stbuehler" "${keydir}/obs-home-stbuehler.key"
  17. obs_get "openSUSE:Tools" "${keydir}/obs-tools.key"
  18. # obs_get "server:http" "${keydir}/obs-server-http.key"