Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
Rob Gill 2018-06-05 15:09:07 +10:00 committed by GitHub
parent 36dbdf955d
commit 13b8e1a2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ if command -v apt-get &> /dev/null; then
echo -e " ${INFO} Existing PHP installation detected : PHP version $phpInsVersion" echo -e " ${INFO} Existing PHP installation detected : PHP version $phpInsVersion"
fi fi
# Check if installed php is supported version (5.4 is EOL) # Check if installed php is supported version (5.4 is EOL)
if [[ $phpInsVersion < "5.5" ]]; then if [[ "$phpInsVersion" < "5.5" ]]; then
# Prefer the php metapackage if it's there # Prefer the php metapackage if it's there
if ${PKG_MANAGER} install --dry-run php > /dev/null 2>&1; then if ${PKG_MANAGER} install --dry-run php > /dev/null 2>&1; then
phpVer="php" phpVer="php"