From b02db342e7459c59a3ab530375dbf738f657100d Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 8 Mar 2018 22:08:54 -0500 Subject: [PATCH] Update nginx.sh (#156) updated for stretch --- debian/resources/nginx.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index c4f9b90..8e7cc81 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -10,7 +10,9 @@ cd "$(dirname "$0")" #change the version of php for debian stretch if [ ."$os_codename" = ."stretch" ]; then - php_version=7 + apt-get -y install apt-transport-https lsb-release ca-certificates + wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg + sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' fi #send a message