summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2013-01-07 17:57:39 -0500
committerAntoine Beaupré <anarcat@koumbit.org>2013-01-07 17:57:39 -0500
commite97486db5fae20a5a1c601e86b7a7f3763e1c1c5 (patch)
treeb85fe854a88df265dbfdca33a2afd7b02e5c33e1 /templates
parentf0d3b2209e3b629c5442bd25d28a5bc855229723 (diff)
make the key script support multiple repositories
Diffstat (limited to 'templates')
-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