From bb5dfb73cf672db2973af44a03b4e1125ec9e9c9 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 31 Oct 2020 14:57:16 +0530 Subject: [PATCH] Fix php-dev setup --- src/scripts/linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 8224e6fe..e29a431d 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -339,7 +339,7 @@ add_composertool() { add_devtools() { tool=$1 if ! [ -e "/usr/bin/phpize$version" ] || ! [ -e "/usr/bin/php-config$version" ]; then - update_lists && $apt_install php"$version"-dev php"$version"-xml >/dev/null 2>&1 + $apt_install --no-upgrade php"$version"-dev php"$version"-xml >/dev/null 2>&1 || update_lists && $apt_install --no-upgrade php"$version"-dev php"$version"-xml >/dev/null 2>&1 fi sudo update-alternatives --set php-config /usr/bin/php-config"$version" >/dev/null 2>&1 sudo update-alternatives --set phpize /usr/bin/phpize"$version" >/dev/null 2>&1 @@ -363,7 +363,7 @@ setup_old_versions() { add_pecl() { add_devtools phpize >/dev/null 2>&1 if [ ! -e /usr/bin/pecl ]; then - $apt_install php-pear >/dev/null 2>&1 || update_lists && $apt_install php-pear >/dev/null 2>&1 + $apt_install --no-upgrade php-pear >/dev/null 2>&1 || update_lists && $apt_install php-pear >/dev/null 2>&1 fi configure_pecl >/dev/null 2>&1 pecl_version=$(get_tool_version "pecl" "version")