mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Update basic-install.sh
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
714b6c98ef
commit
36dbdf955d
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ if command -v apt-get &> /dev/null; then
|
||||||
# Supported php is installed, its common, cgi & sqlite counterparts are deps
|
# Supported php is installed, its common, cgi & sqlite counterparts are deps
|
||||||
phpInsMajor="$(echo "$phpInsVersion" | cut -d\. -f1)"
|
phpInsMajor="$(echo "$phpInsVersion" | cut -d\. -f1)"
|
||||||
phpInsMinor="$(echo "$phpInsVersion" | cut -d\. -f2)"
|
phpInsMinor="$(echo "$phpInsVersion" | cut -d\. -f2)"
|
||||||
phpVer="php$phpInsMajor.phpInsMinor"
|
phpVer="php$phpInsMajor.$phpInsMinor"
|
||||||
fi
|
fi
|
||||||
# We also need the correct version for `php-sqlite` (which differs across distros)
|
# We also need the correct version for `php-sqlite` (which differs across distros)
|
||||||
if ${PKG_MANAGER} install --dry-run ${phpVer}-sqlite3 > /dev/null 2>&1; then
|
if ${PKG_MANAGER} install --dry-run ${phpVer}-sqlite3 > /dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in a new issue