Add option to fetch keys via HTTP 80/tcp
This commit is contained in:
parent
97e0f92e77
commit
c1c37bbecf
@ -3,5 +3,20 @@
|
||||
amf_return=0
|
||||
|
||||
dirmngr &
|
||||
pacman-key --populate || amf_return=1
|
||||
pacman-key --refresh-keys || amf_return=1
|
||||
|
||||
echo " We can force to fetch PGP keys via HTTP over 80/tcp."
|
||||
echo " You probably don't want this unless your internet connection is heavily filtered."
|
||||
echo -n "=> Is your internet connection filtered (e.g. company network)? (y/N)"
|
||||
read answer
|
||||
|
||||
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
|
||||
echo " Ugh. Poor bastard, you."
|
||||
keyserver="hpk://p80.pool.sks-keyservers.net:80"
|
||||
else
|
||||
keyserver="hkp://pool.sks-keyservers.net"
|
||||
fi
|
||||
|
||||
echo " Fetching via $keyserver"
|
||||
|
||||
pacman-key --populate --keyserver $keyserver || amf_return=1
|
||||
pacman-key --refresh-keys --keyserver $keyserver || amf_return=1
|
||||
|
Loading…
Reference in New Issue
Block a user