summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-07-02 18:17:18 +0200
committerintrigeri <intrigeri@boum.org>2012-07-02 18:17:18 +0200
commitea0c585405cd97a7bf396061fd9e57fefc22fa1a (patch)
treeb453544fa35178d167c101152f4d4a5117ff2755 /templates
parentffa04c84b2bc78d5add63a7ba98660a0a668cb64 (diff)
parentcdb297c003b6b0dcbc7153aa663ebe3bcfd7adee (diff)
Merge branch 'improve-pubkey-export'
Diffstat (limited to 'templates')
-rw-r--r--templates/reprepro-export-key.sh.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
index e619e24..2b97585 100644
--- a/templates/reprepro-export-key.sh.erb
+++ b/templates/reprepro-export-key.sh.erb
@@ -4,7 +4,9 @@ KEY="`gpg --homedir <%= basedir %>/.gnupg --with-colon --list-secret-keys | cut
if [ ! -z "$KEY" ]; then
tempfile=$(mktemp)
+ destfile=<%= basedir %>/key.asc
gpg --homedir <%= basedir %>/.gnupg --export --armor $KEY > "$tempfile"
- mv "$tempfile" <%= basedir %>/key.asc
- chmod 0664 <%= basedir %>/key.asc
+ mv "$tempfile" "$destfile"
+ chown reprepro:reprepro "$destfile"
+ chmod 0664 "$destfile"
fi