From 4c099923a7e7e55bf7ff0229ca57088d79a21eed Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Mon, 28 Sep 2020 01:07:01 +0200 Subject: [PATCH] delete old php ini for backward compatibility --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index be80ab0..683f418 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,6 +126,11 @@ ynh_script_progression --message="Upgrading php-fpm configuration..." --weight=2 # Create a dedicated php-fpm config ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +# Delete existing ini configuration file (backward compatibility) +if [ -f /etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini ]; then + ynh_secure_remove --file=/etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini +fi + #================================================= # SPECIFIC UPGRADE #=================================================