Add dev package for PHP by default on self-hosted

This commit is contained in:
Shivam Mathur 2021-11-18 16:51:20 +05:30
parent 2f2a90e464
commit 721e4c3367
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -128,7 +128,7 @@ switch_version() {
add_packaged_php() { add_packaged_php() {
if [ "$runner" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then if [ "$runner" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then
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 <<<"$(echo "cli curl mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")" IFS=' ' read -r -a packages <<<"$(echo "cli curl dev mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")"
install_packages "${packages[@]}" install_packages "${packages[@]}"
else else
run_script "php-ubuntu" "$version" run_script "php-ubuntu" "$version"