@@ -474,21 +474,25 @@ EE134()
474474{
475475 if [ " $LINUX_DISTRO " == " Ubuntu" ]
476476 then
477- # Removing Old Nginx Repository
478- rm /etc/apt/sources.list.d/brianmercer-nginx*
477+ nginx -v 2>&1 | grep 1.4.7
478+ if [ $? -ne 0 ]
479+ then
480+ # Removing Old Nginx Repository
481+ rm /etc/apt/sources.list.d/brianmercer-nginx*
479482
480- # Add rtCamp Nginx Launchpad Repository
481- echo -e " \033[34mAdding rtCamp Nginx Launchpad Repository, Please Wait...\e[0m"
482- add-apt-repository -y ppa:rtcamp/nginx & >> $INSTALLLOG \
483- || OwnError " Unable To Add Nginx Launchpad Repository"
483+ # Add rtCamp Nginx Launchpad Repository
484+ echo -e " \033[34mAdding rtCamp Nginx Launchpad Repository, Please Wait...\e[0m"
485+ add-apt-repository -y ppa:rtcamp/nginx & >> $INSTALLLOG \
486+ || OwnError " Unable To Add Nginx Launchpad Repository"
484487
485- # Update The APT Cache
486- echo -e " \033[34mUpdating APT Cache, Please Wait...\e[0m"
487- apt-get update & >> $INSTALLLOG || OwnError " Unable To Update APT Cache"
488+ # Update The APT Cache
489+ echo -e " \033[34mUpdating APT Cache, Please Wait...\e[0m"
490+ apt-get update & >> $INSTALLLOG || OwnError " Unable To Update APT Cache"
488491
489- # Update Nginx
490- apt-get -o Dpkg::Options::=" --force-confold" -y install nginx-custom \
491- || OwnError " Unable To Update Nginx"
492+ # Update Nginx
493+ apt-get -o Dpkg::Options::=" --force-confold" -y install nginx-custom \
494+ || OwnError " Unable To Update Nginx"
495+ fi
492496 fi
493497}
494498
596600 EECURRENTVERSION=" 1.3.4"
597601 fi
598602
599- if [[ $EECURRENTVERSION = 1.3.4 ]]
603+ if [[ $EECURRENTVERSION = 1.3.4 ]] || [[ $EECURRENTVERSION = 1.3.5 ]]
600604 then
601605 EE134
602606 fi
0 commit comments