From 404c0a8f6d1144bda649dbc3faca6a8df1f568ab Mon Sep 17 00:00:00 2001 From: erxspin Date: Sun, 26 Feb 2017 03:52:57 +0600 Subject: [PATCH] added dependency ppa:ondrej/php repo and package software-properties-common --- debian/resources/nginx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index 60ec79f..a4797d4 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -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