summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/lib/live/config/2000-import-gnupg-key
blob: ebfcb414ff1cbc79cd82718b182a4d41b761e15d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

Import_GnuPG_key ()
{
	echo "- importing GnuPG key"
	sudo -H -u "${LIVE_USERNAME}" gpg --batch --import /usr/share/doc/tails/website/*.key

	echo "- importing GnuPG signing key into tails-iuk's trusted keyring"
	mkdir -p /usr/share/tails-iuk/trusted_gnupg_homedir
	gpg --batch --homedir /usr/share/tails-iuk/trusted_gnupg_homedir \
	    --import /usr/share/doc/tails/website/tails-signing.key
	chmod -R go+rX /usr/share/tails-iuk/trusted_gnupg_homedir/*

	# Creating state file
	touch /var/lib/live/config/import-gnupg-key	
}

Import_GnuPG_key