2000-import-gnupg-key 473 Bytes
Newer Older
1
2
3
4
#!/bin/sh

Import_GnuPG_key ()
{
5
	echo "- importing GnuPG key into ${LIVE_USERNAME}'s keyring"
6
	sudo -H -u "${LIVE_USERNAME}" gpg --batch --import /usr/share/doc/tails/website/*.key
7

8
9
10
11
	echo "- importing GnuPG signing key into tails-iuk's trusted keyring"
	gpg --batch --homedir /usr/share/tails-iuk/trusted_gnupg_homedir \
	    --import /usr/share/doc/tails/website/tails-signing.key

12
13
14
15
16
	# Creating state file
	touch /var/lib/live/config/import-gnupg-key	
}

Import_GnuPG_key