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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 #!/bin/sh -e
2
3 # apt-get install debian-keyring
4
5 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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26