diff options
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r-- | templates/reprepro-export-key.sh.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb index c11a530..dace01e 100644 --- a/templates/reprepro-export-key.sh.erb +++ b/templates/reprepro-export-key.sh.erb @@ -6,10 +6,10 @@ KEY="$(gpg --homedir <%= @basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1)" if [ -n "$KEY" ]; then - tempfile=$(mktemp) - destfile=<%= @basedir %>/key.asc - gpg --homedir <%= @basedir %>/.gnupg --export --armor $KEY > "$tempfile" - mv "$tempfile" "$destfile" - chown reprepro:reprepro "$destfile" - chmod 0664 "$destfile" + 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 |