From c6d24358b8dd35928ee4a779396eef21c95595ad Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 4 Jan 2020 00:12:02 +0100 Subject: [PATCH] Update ynh_install_php__3 --- scripts/ynh_install_php__3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ynh_install_php__3 b/scripts/ynh_install_php__3 index 75bb6db..b5f7bda 100644 --- a/scripts/ynh_install_php__3 +++ b/scripts/ynh_install_php__3 @@ -37,8 +37,9 @@ ynh_install_php () { # 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 + # Pin this extra repository after packages are installed to prevent sury of doing shit + ynh_pin_repo --package="*" --pin="origin \"packages.sury.org\"" 200 --name=extra_php_version + ynh_pin_repo --package="php7.0*" --pin="origin \"packages.sury.org\"" 600 --name=extra_php_version $append # Advertise service in admin panel yunohost service add php${phpversion}-fpm --log "/var/log/php${phpversion}-fpm.log"