From 628ae1fd39e44951b2191fb3998785b1d717df26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 10 Dec 2020 12:28:24 +0100 Subject: [PATCH] Update scripts/restore Co-authored-by: Kayou --- scripts/restore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/restore b/scripts/restore index 83149f4..d77447c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -97,6 +97,10 @@ chown root: $final_path/wp-config.php # RESTORE THE PHP-FPM CONFIGURATION #================================================= +# Restore the file first, so it can have a backup if different +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" + +# Recreate a dedicated php-fpm config ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies" #=================================================