Browse Source

Fix GPG Key Fetch Issue

old-stable
Mitesh Shah 12 years ago
parent
commit
743b4469cf
  1. 30
      setup/engine

30
setup/engine

@ -143,15 +143,19 @@ then
sudo add-apt-repository ppa:brianmercer/nginx \
|| OwnError "Unable To Add Nginx Launchpad Repository"
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update 2> /tmp/keymissing || OwnError "Unable To Update APT Cache"
# Fix GPG Key Problems
echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx Repository... \e[0m"
sudo apt-get update 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
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update || OwnError "Unable To Update APT Cache"
# Install Nginx
echo -e "\033[34m Installing Nginx... \e[0m"
sudo apt-get -y install nginx-custom || OwnError "Unable To Install Nginx"
@ -169,15 +173,19 @@ then
sudo add-apt-repository ppa:ondrej/php5 \
|| OwnError "Unable To Add PHP5 Launchpad Repository"
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update 2> /tmp/keymissing || OwnError "Unable To Update APT Cache"
# Fix GPG Key Problems
echo -e "\033[34m Checking GPG Keys For Ondrej PHP5 Repository... \e[0m"
sudo apt-get update 2> /tmp/keymissing || OwnError "Unable To Fix GPG Keys For Ondrej PHP5 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
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update || OwnError "Unable To Update APT Cache"
# Install PHP5
echo -e "\033[34m Installing PHP5... \e[0m"
sudo apt-get -y install php5-common php5-mysql php5-xmlrpc \
@ -224,15 +232,19 @@ then
sudo add-apt-repository ppa:ondrej/php5 \
|| OwnError "Unable To Add PHP5 Launchpad Repository"
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update 2> /tmp/keymissing || OwnError "Unable To Update APT Cache"
# Fix GPG Key Problems
echo -e "\033[34m Checking GPG Keys For Brianmercer Nginx & Ondrej PHP5 Repository... \e[0m"
sudo apt-get update 2> /tmp/keymissing || OwnError "Unable To Fix GPG Keys For Nginx & PHP5 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
# Update The APT Cache
echo -e "\033[34m Updating APT Cache... \e[0m"
sudo apt-get update || OwnError "Unable To Update APT Cache"
# Install Nginx PHP5 MySQL Postfix
echo -e "\033[34m Installing Nginx PHP5 MySQL Postfix... \e[0m"
sudo apt-get -y install nginx-custom php5-common php5-mysql php5-xmlrpc \

Loading…
Cancel
Save