From c4f56db3216493f524da1dda5d4c94e31ba65f4b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 17 Apr 2019 22:47:36 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 926b5524..c084b21c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -96,6 +96,9 @@ ynh_install_php () { ynh_add_app_dependencies --package="php${phpversion}-fpm" ynh_add_app_dependencies --package="php$phpversion php${phpversion}-common $package" + # Set php7.0 back as the default version for php-cli. + update-alternatives --set php /usr/bin/php7.0 + # Remove this extra repository after packages are installed ynh_remove_extra_repo --name=extra_php_version