summaryrefslogtreecommitdiff
path: root/templates/reprepro-export-key.sh.erb
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-02-13 11:58:37 -0500
committerMicah Anderson <micah@riseup.net>2013-02-13 11:58:37 -0500
commite20017a22d135361980c4889f1827e5ecd3fd1af (patch)
tree9e7c44c39cb7b481c8320ff73c785370ed0cba9d /templates/reprepro-export-key.sh.erb
parent4ea15148100fdf0f8b172901c41ba58b06ff0bec (diff)
parentcc12ced0f3f62c975f9f711da67770ffb33d7ba7 (diff)
Merge branch 'master' into leap
this brings our master back to before we made some changes. I've split out those changes into topic branches, and rebased them on top of the current state of master. I will merge those in next Conflicts: manifests/init.pp templates/distributions.erb
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r--templates/reprepro-export-key.sh.erb18
1 files changed, 0 insertions, 18 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
deleted file mode 100644
index bbc195c..0000000
--- a/templates/reprepro-export-key.sh.erb
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-#
-# This file is managed by Puppet. Do not edit, any changes will be overwritten!
-#
-
-set -e
-
-KEY="$(gpg --homedir '<%= @basedir %>/.gnupg' --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1)"
-
-if [ -n "$KEY" ]; then
- TEMPFILE=$(mktemp --tmpdir='<%= @basedir %>')
- trap "rm -f '$TEMPFILE'" EXIT
- DESTFILE='<%= @basedir %>/key.asc'
- gpg --homedir '<%= @basedir %>/.gnupg' --export --armor "$KEY" > "$TEMPFILE"
- mv "$TEMPFILE" "$DESTFILE"
- chown reprepro:reprepro "$DESTFILE"
- chmod 0664 "$DESTFILE"
-fi