From 9c317071dfccf78e7f5488d760f3b0ebc9f4c517 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 11 Jun 2013 12:12:13 +0530 Subject: [PATCH] Remove GPGKEYS Checked --- setup/engine | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/setup/engine b/setup/engine index 90346725..7d5b466c 100755 --- a/setup/engine +++ b/setup/engine @@ -71,15 +71,19 @@ PHPREPO() GPGKEY() { - # Fix GPG Key Problems - echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx Repository... \e[0m" - sudo apt-get update > /dev/null 2> /tmp/keymissing \ - || OwnError "Unable To Fix GPG Keys For Brianmercer Nginx Repository " - for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //") - do - echo -e "\033[34m Processing key: $key \e[0m" - gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add - - done + if [ -f ~/.gpgkeyfix ] + then + # Fix GPG Key Problems + echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx Repository... \e[0m" + sudo apt-get update > /dev/null 2> /tmp/keymissing \ + || OwnError "Unable To Fix GPG Keys For Brianmercer Nginx Repository " + + for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //") + do + echo -e "\033[34m Processing key: $key \e[0m" + gpg --keyserver subkeys.pgp.net --recv $key && sudo gpg --export --armor $key | apt-key add - + done + fi } UPDATEAPT()