summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/distributions.erb6
-rw-r--r--templates/reprepro-export-key.sh.erb7
2 files changed, 9 insertions, 4 deletions
diff --git a/templates/distributions.erb b/templates/distributions.erb
index e004778..233f2b9 100644
--- a/templates/distributions.erb
+++ b/templates/distributions.erb
@@ -29,12 +29,12 @@ Codename: squeeze
Version: 6.0
Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386
Components: main non-free contrib
-Description: koumbit specific (or backported) packages
+Description: <%= reprepro_origin %> specific (or backported) packages
SignWith: yes
Uploaders: uploaders
-Origin: koumbit
-Label: koumbit
+Origin: <%= reprepro_origin %>
+Label: <%= reprepro_origin %>
Suite: testing
Pull: unstable
Codename: wheezy
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
index c99f06b..2b97585 100644
--- a/templates/reprepro-export-key.sh.erb
+++ b/templates/reprepro-export-key.sh.erb
@@ -3,5 +3,10 @@
KEY="`gpg --homedir <%= basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1`"
if [ ! -z "$KEY" ]; then
- gpg --homedir <%= basedir %>/.gnupg --export --armor $KEY > <%= basedir %>/key.asc
+ tempfile=$(mktemp)
+ destfile=<%= basedir %>/key.asc
+ gpg --homedir <%= basedir %>/.gnupg --export --armor $KEY > "$tempfile"
+ mv "$tempfile" "$destfile"
+ chown reprepro:reprepro "$destfile"
+ chmod 0664 "$destfile"
fi