forked from norman/fusionpbx-install.sh-github-mirror
Update nginx.sh
This commit is contained in:
8
debian/resources/nginx.sh
vendored
8
debian/resources/nginx.sh
vendored
@@ -11,9 +11,10 @@ cd "$(dirname "$0")"
|
|||||||
#send a message
|
#send a message
|
||||||
verbose "Installing the web server"
|
verbose "Installing the web server"
|
||||||
|
|
||||||
arch=$(uname -m)
|
|
||||||
real_os=$(lsb_release -is)
|
real_os=$(lsb_release -is)
|
||||||
codename=$(lsb_release -cs)
|
codename=$(lsb_release -cs)
|
||||||
|
|
||||||
#if [ ."$cpu_architecture" = ."arm" ]; then
|
#if [ ."$cpu_architecture" = ."arm" ]; then
|
||||||
#9.x - */stretch/
|
#9.x - */stretch/
|
||||||
#8.x - */jessie/
|
#8.x - */jessie/
|
||||||
@@ -42,6 +43,11 @@ else
|
|||||||
fi
|
fi
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
|
#use php version 5 for arm
|
||||||
|
if [ .$cpu_architecture = .'arm' ]; then
|
||||||
|
php_version=5
|
||||||
|
fi
|
||||||
|
|
||||||
#install dependencies
|
#install dependencies
|
||||||
apt-get install -y nginx
|
apt-get install -y nginx
|
||||||
if [ ."$php_version" = ."5" ]; then
|
if [ ."$php_version" = ."5" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user