Add pear/pecl by default to self-hosted Linux environments

This commit is contained in:
Shivam Mathur 2022-02-07 23:56:12 +05:30
parent 4dc94c27cf
commit 8b26e8d15a
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -132,6 +132,7 @@ add_packaged_php() {
add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php
IFS=' ' read -r -a packages <<<"$(sed "s/[^ ]*/php$version-&/g" "$src"/configs/php_packages | tr '\n' ' ')" IFS=' ' read -r -a packages <<<"$(sed "s/[^ ]*/php$version-&/g" "$src"/configs/php_packages | tr '\n' ' ')"
install_packages "${packages[@]}" install_packages "${packages[@]}"
add_pecl
else else
run_script "php-ubuntu" "$version" run_script "php-ubuntu" "$version"
fi fi