Fix the php version check command (Thanks @diginc!)

This commit is contained in:
Promofaux 2016-09-30 22:40:43 +01:00
parent 78c8723629
commit 6a8bef83b3

View file

@ -62,7 +62,7 @@ if [ -x "$(command -v apt-get)" ];then
#Debian Family #Debian Family
#Decide if php should be `php5` or just `php` (Fixes issues with Ubuntu 16.04 LTS) #Decide if php should be `php5` or just `php` (Fixes issues with Ubuntu 16.04 LTS)
phpVer="php" phpVer="php"
apt-cache show php5 &> /dev/null ${SUDO} apt-get install --dry-run php5 > /dev/null 2>&1
if [ $? == 0 ]; then if [ $? == 0 ]; then
phpVer="php5" phpVer="php5"
fi fi