Fix dependency mess in phalcon4 setup on ubuntu

This commit is contained in:
Shivam Mathur 2020-10-12 10:45:03 +05:30
parent 537c66b2ea
commit f687ff8f21
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -3,7 +3,11 @@ add_phalcon_helper() {
status='Installed and enabled'
if [ "$os_name" = "Linux" ]; then
update_lists
${apt_install:?} "php${version:?}-$extension"
if [ "$extension" = "phalcon4" ]; then
${apt_install:?} "php${version:?}-psr" "php${version:?}-$extension"
else
${apt_install:?} "php${version:?}-$extension"
fi
else
phalcon_ini_file=${ini_file:?}
sed -i '' '/extension.*psr/d' "${ini_file:?}"