Update nginx.sh
This commit is contained in:
parent
490cbd1c2b
commit
868b1a5d12
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue