/[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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 322 by dpavlin, Sat Oct 18 09:08:05 2014 UTC revision 323 by dpavlin, Wed Oct 22 11:35:06 2014 UTC
# Line 1  Line 1 
1  #!/bin/sh -xe  #!/bin/sh -e
2    
3  # apt-get install debian-keyring  # apt-get install debian-keyring
4    
5  gpg --keyserver pgp.mit.edu --recv-keys $1 && gpg --armor --export $1 | apt-key add -  test -z "$1" && echo "Usage: $0 key-hash" && exit 1
6    key=$1
7    
8    set -x
9    
10    gpg --keyserver pgp.mit.edu --recv-keys $key && gpg --armor --export $key | apt-key add -
11    
12    

Legend:
Removed from v.322  
changed lines
  Added in v.323

  ViewVC Help
Powered by ViewVC 1.1.26