summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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