From 87db34f166be1152e8c561b0ac3fdd865336c0ca Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Jun 2021 22:38:26 +0200 Subject: [PATCH] bypass check_memory for CI --- scripts/install | 8 ++++++-- scripts/restore | 8 ++++++-- scripts/upgrade | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 2ab6455..1d45375 100644 --- a/scripts/install +++ b/scripts/install @@ -43,8 +43,12 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url -# Check memory requirements -#check_memory_requirements +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + # Check memory requirements + check_memory_requirements +fi #================================================= # STORE SETTINGS FROM MANIFEST diff --git a/scripts/restore b/scripts/restore index 88cd625..5c59e25 100644 --- a/scripts/restore +++ b/scripts/restore @@ -44,8 +44,12 @@ ynh_webpath_available --domain=$domain --path_url=$path_url \ test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path " -# Check memory requirements -#check_memory_requirements +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + # Check memory requirements + check_memory_requirements +fi #================================================= # STANDARD RESTORATION STEPS diff --git a/scripts/upgrade b/scripts/upgrade index cf9b7e4..8f8217d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,8 +26,12 @@ redis_db=$(ynh_app_setting_get --app=$app --key=redis_db) unicorn_workers=$(ynh_app_setting_get --app=$app --key=unicorn_workers) email=$(ynh_app_setting_get --app=$app --key=email) -# Check memory requirements -#check_memory_requirements_upgrade +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + : +else + # Check memory requirements + check_memory_requirements +fi #================================================= # CHECK VERSION