44LOGDIR=/var/log/easyengine
55ERRORLOG=/var/log/easyengine/error.log
66INSTALLLOG=/var/log/easyengine/install.log
7+ LINUX_DISTRO=$( lsb_release -i | cut -d' :' -f2 | awk ' {print $1}' )
78
89# Main EasyEngine Function To Log All The Outputs
910EasyEngine ()
@@ -53,14 +54,14 @@ PYTHONSOFTWARE()
5354
5455NGINXREPO ()
5556{
56- if [ -f /etc/lsb-release ]
57+ if [ " $LINUX_DISTRO " == " Ubuntu " ]
5758 then
5859 # Add Nginx Launchpad Repository
5960 echo -e " \033[34mAdding Brianmercer Nginx Launchpad Repository, Please Wait...\e[0m"
6061 add-apt-repository -y ppa:brianmercer/nginx & >> $INSTALLLOG \
6162 || OwnError " Unable To Add Nginx Launchpad Repository"
6263
63- elif [ -f /etc/debian_version ]
64+ elif [ " $LINUX_DISTRO " == " Debian " ]
6465 then
6566 # Add Nginx DotDeb Repository
6667 echo -e " \033[34mAdding Nginx DotDeb Repository, Please Wait...\e[0m"
@@ -75,14 +76,14 @@ NGINXREPO()
7576
7677PHPREPO ()
7778{
78- if [ -f /etc/lsb-release ]
79+ if [ " $LINUX_DISTRO " == " Ubuntu " ]
7980 then
8081 # Add PHP Launchpad Repository
8182 echo -e " \033[34mAdding Ondrej PHP5 Launchpad Repository, Please Wait...\e[0m"
8283 add-apt-repository -y ppa:ondrej/php5 & >> $INSTALLLOG \
8384 || OwnError " Unable To Add PHP5 Launchpad Repository"
8485
85- elif [ -f /etc/debian_version ]
86+ elif [ " $LINUX_DISTRO " == " Debian " ]
8687 then
8788 # Detect Debian Version To Select PHP Repo
8889 DEBIAN_VERSION=$( lsb_release -r | awk ' {print($2)}' | cut -d' .' -f1)
0 commit comments