mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix first install
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
5818f3f997
commit
4b674ecfe3
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ package_manager_detect() {
|
|||
# Update package cache
|
||||
update_package_cache || exit 1
|
||||
# Check for and determine version number (major and minor) of current php install
|
||||
local phpVer
|
||||
local phpVer="php"
|
||||
if is_command php ; then
|
||||
phpVer="$(php -v 2> /dev/null | head -n1 | cut -d '-' -f1 | cut -d ' ' -f2)"
|
||||
# Check if the first character of the string is numeric
|
||||
|
|
Loading…
Reference in a new issue