summaryrefslogtreecommitdiff
path: root/templates/reprepro-export-key.sh.erb
blob: ecd2cf2768be3da5609c21bc7447dc3c47176d88 (plain)
1
2
3
4
5
6
7
#!/bin/bash

KEY="`/usr/bin/gpg --with-colon --list-secret-keys | cut -d : -f 5 | head -1`"

if [ ! -z "$KEY" ]; then
  /usr/bin/gpg --export --armor $KEY > <%= basedir %>/key.asc
fi