summaryrefslogtreecommitdiff
path: root/templates/reprepro-export-key.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reprepro-export-key.sh.erb')
-rw-r--r--templates/reprepro-export-key.sh.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/reprepro-export-key.sh.erb b/templates/reprepro-export-key.sh.erb
index 2b97585..eee1731 100644
--- a/templates/reprepro-export-key.sh.erb
+++ b/templates/reprepro-export-key.sh.erb
@@ -1,11 +1,11 @@
#!/bin/bash
-KEY="`gpg --homedir <%= basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1`"
+KEY="`gpg --homedir <%= @basedir %>/.gnupg --with-colon --list-secret-keys | cut -d : -f 5 | head -n 1`"
if [ ! -z "$KEY" ]; then
tempfile=$(mktemp)
- destfile=<%= basedir %>/key.asc
- gpg --homedir <%= basedir %>/.gnupg --export --armor $KEY > "$tempfile"
+ destfile=<%= @basedir %>/key.asc
+ gpg --homedir <%= @basedir %>/.gnupg --export --armor $KEY > "$tempfile"
mv "$tempfile" "$destfile"
chown reprepro:reprepro "$destfile"
chmod 0664 "$destfile"