|
@ -71,15 +71,19 @@ PHPREPO() |
|
|
|
|
|
|
|
|
GPGKEY() |
|
|
GPGKEY() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if [ -f ~/.gpgkeyfix ] |
|
|
|
|
|
then |
|
|
# Fix GPG Key Problems |
|
|
# Fix GPG Key Problems |
|
|
echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx Repository... \e[0m" |
|
|
echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx Repository... \e[0m" |
|
|
sudo apt-get update > /dev/null 2> /tmp/keymissing \ |
|
|
sudo apt-get update > /dev/null 2> /tmp/keymissing \ |
|
|
|| OwnError "Unable To Fix GPG Keys For Brianmercer Nginx Repository " |
|
|
|| OwnError "Unable To Fix GPG Keys For Brianmercer Nginx Repository " |
|
|
|
|
|
|
|
|
for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //") |
|
|
for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //") |
|
|
do |
|
|
do |
|
|
echo -e "\033[34m Processing key: $key \e[0m" |
|
|
echo -e "\033[34m Processing key: $key \e[0m" |
|
|
gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add - |
|
|
gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add - |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
UPDATEAPT() |
|
|
UPDATEAPT() |
|
|