22 lines
646 B
Bash
Executable File
22 lines
646 B
Bash
Executable File
#!/bin/bash
|
|
|
|
amf_return=0
|
|
|
|
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="hkp://p80.pool.sks-keyservers.net:80"
|
|
else
|
|
keyserver="hkp://pool.sks-keyservers.net"
|
|
fi
|
|
|
|
echo " Fetching via $keyserver"
|
|
|
|
dirmngr &
|
|
pacman-key --populate --keyserver $keyserver || amf_return=1
|
|
pacman-key --refresh-keys --keyserver $keyserver || amf_return=1
|