From 19457af216ae9aaaf1080e26e84f7957610fa8c7 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 25 Mar 2020 03:12:37 +0100 Subject: [PATCH] Bypass composer issue and GitHub Rate Limit https://developer.github.com/v3/#rate-limiting --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e2a8f498..2756894e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -156,6 +156,11 @@ ynh_print_info --message="Updating php dependencies..." chown -R "$app": "$final_path" +# Bypass composer issue and GitHub Rate Limit https://developer.github.com/v3/#rate-limiting +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 3600 +fi + # Fix Google Recaptcha removal ynh_secure_remove --file="$final_path/bootstrap/cache" mkdir -p "$final_path/bootstrap/cache"