From 868b1a5d1254652bd2664bac23fcb34a15b773c1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 10:42:12 -0700 Subject: [PATCH] Update nginx.sh --- debian/resources/nginx.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index 8f6a224..6f3152d 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -11,9 +11,10 @@ cd "$(dirname "$0")" #send a message verbose "Installing the web server" -arch=$(uname -m) + real_os=$(lsb_release -is) codename=$(lsb_release -cs) + #if [ ."$cpu_architecture" = ."arm" ]; then #9.x - */stretch/ #8.x - */jessie/ @@ -42,6 +43,11 @@ else fi apt-get update +#use php version 5 for arm +if [ .$cpu_architecture = .'arm' ]; then + php_version=5 +fi + #install dependencies apt-get install -y nginx if [ ."$php_version" = ."5" ]; then