diff --git a/scripts/_common.sh b/scripts/_common.sh index dbfb212..345d1c5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -195,6 +195,10 @@ ynh_remove_nodejs () { # ynh_install_php7 () { + + ynh_package_update + ynh_package_install apt-transport-https --no-install-recommends + architecture=$(uname -m) if [ $architecture == "armv7l" ]; then # arm package @@ -208,7 +212,6 @@ ynh_install_php7 () { fi ynh_package_update - ynh_package_install apt-transport-https --no-install-recommends ynh_package_install php7.0 php7.0-fpm php7.0-mysql php7.0-xml php7.0-intl php7.0-mbstring --no-install-recommends sudo update-alternatives --install /usr/bin/php php /usr/bin/php5 70 }