diff --git a/scripts/restore b/scripts/restore index 38b43353..549039d4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,12 +70,6 @@ ynh_system_user_create "$app" # Restore permissions on app files chown -R "$app": "$final_path" -#================================================= -# RESTORE THE PHP-FPM CONFIGURATION -#================================================= - -ynh_restore_file "/etc/php/7.2/fpm/pool.d/$app.conf" - #================================================= # SPECIFIC RESTORATION #================================================= @@ -97,6 +91,12 @@ ynh_psql_test_if_first_run ynh_psql_create_db "$db_name" "$db_name" "$db_pwd" ynh_psql_execute_file_as_root ./db.sql "$db_name" +#================================================= +# RESTORE THE PHP-FPM CONFIGURATION +#================================================= + +ynh_restore_file "/etc/php/7.2/fpm/pool.d/$app.conf" + #================================================= # GENERIC FINALIZATION #=================================================