summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-08 23:37:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-08 23:37:21 -0300
commit0645d5877476c06b54eacbf15fda5731cf8339ec (patch)
treede364b3501de71bb52ab44bfff9c3ac76d3ab99e /templates
parentb83a46139cecbf9cdf8c6c8469f1b1e79556d4a2 (diff)
downloadpuppet-reprepro-0645d5877476c06b54eacbf15fda5731cf8339ec.tar.gz
puppet-reprepro-0645d5877476c06b54eacbf15fda5731cf8339ec.tar.bz2
Adding /usr/local/bin/reprepro-export-key
Diffstat (limited to 'templates')
-rw-r--r--templates/reprepro-export-key.sh.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
new file mode 100644
index 0000000..f6584ae
--- /dev/null
+++ b/templates/reprepro-export-key.sh.erb
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+KEY="`gpg --with-colon --list-secret-keys | cut -d : -f 5 | head -1`"
+gpg --export -a $KEY > <%= basedir %>/key.asc