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' status='Installed and enabled'
if [ "$os_name" = "Linux" ]; then if [ "$os_name" = "Linux" ]; then
update_lists update_lists
if [ "$extension" = "phalcon4" ]; then
${apt_install:?} "php${version:?}-psr" "php${version:?}-$extension"
else
${apt_install:?} "php${version:?}-$extension" ${apt_install:?} "php${version:?}-$extension"
fi
else else
phalcon_ini_file=${ini_file:?} phalcon_ini_file=${ini_file:?}
sed -i '' '/extension.*psr/d' "${ini_file:?}" sed -i '' '/extension.*psr/d' "${ini_file:?}"