1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-23 07:18:07 +00:00

Merge pull request #734 from pi-hole/phpVerCheckFix

Fix the php version check command (Thanks @diginc!)
This commit is contained in:
Adam Warner 2016-09-30 22:48:39 +01:00 committed by GitHub
commit 722def9362

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