File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,24 @@ PHPREPO()
8484
8585 elif [ -f /etc/debian_version ]
8686 then
87- # Add PHP DotDeb Repository
88- echo -e " \033[34mAdding PHP5 DotDeb Repository, Please Wait...\e[0m"
89- echo " deb http://packages.dotdeb.org $( lsb_release -c | awk ' {print($2)}' -php55) all" > /etc/apt/sources.list.d/dotdeb-$( lsb_release -c | awk ' {print($2)}' ) -php55.list \
90- || OwnError " Unable To Add PHP5 DotDeb Repository"
87+ # Detect Debian Version To Select PHP Repo
88+ DEBIAN_VERSION=$( lsb_release -r | awk ' {print($2)}' | cut -d' .' -f1)
9189
90+ if [ $DEBIAN_VERSION -eq 6 ]
91+ then
92+ # Add PHP DotDeb Repository
93+ echo -e " \033[34mAdding PHP5.4 DotDeb Repository, Please Wait...\e[0m"
94+ echo " deb http://packages.dotdeb.org $( lsb_release -c | awk ' {print($2)}' ) -php54 all" > /etc/apt/sources.list.d/dotdeb-$( lsb_release -c | awk ' {print($2)}' ) -php54.list \
95+ || OwnError " Unable To Add PHP5.4 DotDeb Repository"
96+
97+ elif [ $DEBIAN_VERSION -eq 7 ]
98+ then
99+ # Add PHP DotDeb Repository
100+ echo -e " \033[34mAdding PHP5.5 DotDeb Repository, Please Wait...\e[0m"
101+ echo " deb http://packages.dotdeb.org $( lsb_release -c | awk ' {print($2)}' ) -php55 all" > /etc/apt/sources.list.d/dotdeb-$( lsb_release -c | awk ' {print($2)}' ) -php55.list \
102+ || OwnError " Unable To Add PHP5.5 DotDeb Repository"
103+ fi
104+
92105 # Fetch And Install The GnuPG Key
93106 wget -qcO /tmp/dotdeb.gpg http://www.dotdeb.org/dotdeb.gpg || OwnError " Unable To Download DotDeb GnuPG Key"
94107 apt-key add /tmp/dotdeb.gpg & >> $INSTALLLOG || OwnError " Unable To Add DotDeb GnuPG Key"
You can’t perform that action at this time.
0 commit comments