From 80606322d6b0c8d52725da335af90ed194ca106a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 4 Jan 2020 00:18:03 +0100 Subject: [PATCH 1/2] ynh_install_php__3 --- scripts/_common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f3a8929e..7f93d4d8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -102,8 +102,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" From ecc58c5d5a24e6b4ae8e84475895d7625469ed5c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 4 Jan 2020 14:14:50 +0100 Subject: [PATCH 2/2] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7f93d4d8..fbb68168 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -104,7 +104,7 @@ ynh_install_php () { # 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 + 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"