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