mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Fix the php version check command (Thanks @diginc!)
This commit is contained in:
parent
78c8723629
commit
6a8bef83b3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue