arch-maride-flavour/checks/packeys.check

22 lines
646 B
Plaintext
Raw Permalink Normal View History

2017-09-02 12:18:30 +00:00
#!/bin/bash
2017-09-02 13:07:59 +00:00
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."
2017-11-02 12:13:02 +00:00
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