/[sysadmin-cookbook]/recepies/apt/apt-import-key.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/apt/apt-import-key.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (hide annotations)
Wed Oct 22 11:35:06 2014 UTC (9 years, 5 months ago) by dpavlin
File MIME type: application/x-sh
File size: 208 byte(s)
extract key into variable for easy copy/paste

1 dpavlin 323 #!/bin/sh -e
2 dpavlin 322
3     # apt-get install debian-keyring
4    
5 dpavlin 323 test -z "$1" && echo "Usage: $0 key-hash" && exit 1
6     key=$1
7 dpavlin 322
8 dpavlin 323 set -x
9 dpavlin 322
10 dpavlin 323 gpg --keyserver pgp.mit.edu --recv-keys $key && gpg --armor --export $key | apt-key add -
11    
12    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26