add keys for debian repositories
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 18 Oct 2014 09:08:05 +0000 (09:08 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 18 Oct 2014 09:08:05 +0000 (09:08 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@322 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/apt/apt-import-key.sh [new file with mode: 0755]

diff --git a/recepies/apt/apt-import-key.sh b/recepies/apt/apt-import-key.sh
new file mode 100755 (executable)
index 0000000..4bf5b39
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -xe
+
+# apt-get install debian-keyring
+
+gpg --keyserver pgp.mit.edu --recv-keys $1 && gpg --armor --export $1 | apt-key add -
+
+