added dependency ppa:ondrej/php repo and package software-properties-common

This commit is contained in:
erxspin 2017-02-26 03:52:57 +06:00
parent cd3750886c
commit 404c0a8f6d
1 changed files with 3 additions and 0 deletions

View File

@ -22,12 +22,15 @@ fi
if [ .$USE_PHP5_PACKAGE = .true ]; then
#don't add php7.0 repository
verbose "Switching forcefully to php5* packages"
which add-apt-repository || apt-get install -y software-properties-common
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php5-compat
elif [ .$real_os = .'Ubuntu' ]; then
#16.10.x - */yakkety/
#16.04.x - */xenial/
#14.04.x - */trusty/
if [ .$codename = .'trusty' ]; then
which add-apt-repository || apt-get install -y software-properties-common
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
fi
else