]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
Trying to sort out why reprepro-export-key is not working
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 13:56:36 +0000 (10:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 13:56:36 +0000 (10:56 -0300)
templates/reprepro-export-key.sh.erb

index 52e277c0701e4ac39486eeca7034bf5ae3a4ded9..304d511232afd64aced16082e10cad4c3dd3eeef 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-KEY="`/usr/bin/gpg --with-colon --list-secret-keys | /usr/bin/cut -d : -f 5 | /usr/bin/head -1`"
+KEY="`/usr/bin/gpg --homedir <%= basedir %> --with-colon --list-secret-keys | /usr/bin/cut -d : -f 5 | /usr/bin/head -1 &> <%= basedir %>/key.log`"
 
 if [ ! -z "$KEY" ]; then
   /usr/bin/gpg --export --armor $KEY > <%= basedir %>/key.asc