From e0cab945651b19cc765848a6df515f70e48d1062 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 6 Jun 2019 02:39:01 +0200 Subject: [PATCH] Fix Google Recaptcha removal --- scripts/install | 5 +++++ scripts/upgrade | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 11140814..aab746d3 100644 --- a/scripts/install +++ b/scripts/install @@ -120,6 +120,11 @@ chown -R "$app": "$final_path" ynh_install_composer --phpversion="7.2" --workdir="$final_path" +# Fix Google Recaptcha removal +ynh_secure_remove --file="$final_path/bootstrap/cache" +mkdir -p "$final_path/bootstrap/cache" +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="dump-autoload" + #================================================= # SPECIFIC SETUP #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2fdafb35..ddf7f7ee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,12 +145,17 @@ ynh_add_fpm_config --phpversion="7.2" #================================================= # SPECIFIC UPGRADE #================================================= -# INSTALL PHP DEPENDENCIES +# UPDATE PHP DEPENDENCIES #================================================= chown -R "$app": "$final_path" -ynh_install_composer --phpversion="7.2" --workdir="$final_path" +# Fix Google Recaptcha removal +ynh_secure_remove --file="$final_path/bootstrap/cache" +mkdir -p "$final_path/bootstrap/cache" +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="dump-autoload" + +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="update" #================================================= # MODIFY A CONFIG FILE