From 2be587b258d8acf2225c6fe8f87c5de566181560 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 9 May 2022 19:14:52 +0200 Subject: [PATCH] Update restore --- scripts/restore | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/restore b/scripts/restore index 6ccc8b6..9d14886 100755 --- a/scripts/restore +++ b/scripts/restore @@ -74,16 +74,6 @@ config="$final_path/.env" chmod 400 "$config" chown $app:$app "$config" -#================================================= -# RESTORE THE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the PHP-FPM configuration..." - -#ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" - -# Recreate a dedicated php-fpm config -ynh_add_fpm_config --usage=low --footprint=low - #================================================= # SPECIFIC RESTORATION #================================================= @@ -96,6 +86,16 @@ ynh_install_app_dependencies $pkg_dependencies ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" +#================================================= +# RESTORE THE PHP-FPM CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring the PHP-FPM configuration..." + +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" + +# Recreate a dedicated php-fpm config +ynh_add_fpm_config --usage=low --footprint=low + #================================================= # RESTORE THE MYSQL DATABASE #=================================================