mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-19 22:00:11 +00:00
Oneliner php version check, passes set -e
check.
This commit is contained in:
parent
7e0afffca8
commit
a30f78c1c8
1 changed files with 2 additions and 5 deletions
|
@ -65,11 +65,8 @@ fi
|
||||||
if [ -x "$(command -v apt-get)" ];then
|
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"
|
|
||||||
apt-get install --dry-run php5 > /dev/null 2>&1
|
|
||||||
if [ $? == 0 ]; then
|
|
||||||
phpVer="php5"
|
phpVer="php5"
|
||||||
fi
|
apt-get install --dry-run php5 > /dev/null 2>&1 || phpVer="php"
|
||||||
#############################################
|
#############################################
|
||||||
PKG_MANAGER="apt-get"
|
PKG_MANAGER="apt-get"
|
||||||
PKG_CACHE="/var/lib/apt/lists/"
|
PKG_CACHE="/var/lib/apt/lists/"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue