summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-02-13 11:07:44 -0500
committerMicah Anderson <micah@riseup.net>2013-02-13 11:07:44 -0500
commitcc12ced0f3f62c975f9f711da67770ffb33d7ba7 (patch)
treebbde5c6f5a2df2da3e97780f04c45407dda49a5a /templates
parentd49d2ef054bb1764aa3d374870d6d6557b3234e3 (diff)
parentef40c3b4c8f7e9405397ccf8ca3f9fb8ace22328 (diff)
Merge remote-tracking branch 'koumbit/multi_repo_support'
Diffstat (limited to 'templates')
-rw-r--r--templates/inoticoming.default.erb2
-rw-r--r--templates/reprepro-export-key.sh.erb18
2 files changed, 1 insertions, 19 deletions
diff --git a/templates/inoticoming.default.erb b/templates/inoticoming.default.erb
index a298a16..dd4d55d 100644
--- a/templates/inoticoming.default.erb
+++ b/templates/inoticoming.default.erb
@@ -5,7 +5,7 @@
# for an explanation of options and actions, see inoticoming(1)
# user to run inoticoming as
-USER=reprepro
+USER=<%= @user %>
# log to some file instead of syslog
# required if you want to use --stdout-to-log or --stderr-to-log in actions
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