From c5aaef69e52334e2b250a2c95afa55994731660d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 7 Mar 2021 01:41:05 +0100 Subject: [PATCH] Prevent check_memory requirement during package_check --- scripts/install | 6 ++++-- scripts/restore | 6 ++++-- scripts/upgrade | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index bf7e674..521f71c 100644 --- a/scripts/install +++ b/scripts/install @@ -42,8 +42,10 @@ 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 0 ]; then + # Check memory requirements + check_memory_requirements +fi #================================================= # STORE SETTINGS FROM MANIFEST diff --git a/scripts/restore b/scripts/restore index b9763ee..c62b963 100644 --- a/scripts/restore +++ b/scripts/restore @@ -44,8 +44,10 @@ 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 0 ]; then + # Check memory requirements + check_memory_requirements +fi #================================================= # STANDARD RESTORATION STEPS diff --git a/scripts/upgrade b/scripts/upgrade index 87bb015..fc6fab7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,8 +25,10 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) redis_db=$(ynh_app_setting_get --app=$app --key=redis_db) unicorn_workers=$(ynh_app_setting_get --app=$app --key=unicorn_workers) -# Check memory requirements -check_memory_requirements_upgrade +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then + # Check memory requirements + check_memory_requirements_upgrade +fi #================================================= # CHECK VERSION