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

27 lines
540 B

set -e
tmpdir=$(mktemp --tmpdir -d refresh-obs-keys-XXXXXXX)
trap 'rm -rf "${tmpdir}"' EXIT
self=`readlink -f "$0"`
basedir=`dirname "${self}"`
cd "${tmpdir}"
obs_get() {
local proj="$1"
local target="$2"
echo "Fetching key for ${proj}"
osc signkey --notravers "${proj}" > "public.key"
mv "public.key" "${target}"
obs_get "home:stbuehler" "${keydir}/obs-home-stbuehler.key"
obs_get "openSUSE:Tools" "${keydir}/obs-tools.key"
# obs_get "server:http" "${keydir}/obs-server-http.key"