From c626379c98bb7f052061446cd152e4406979d49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 27 Jun 2021 14:08:14 +0200 Subject: [PATCH] Skip ci check memory (#78) (#79) * CI skip memory --- manifest.json | 2 +- scripts/install | 8 ++++++-- scripts/restore | 8 ++++++-- scripts/upgrade | 8 ++++++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 4f8db83..8baafd5 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Discussion platform", "fr": "Plateforme de discussion" }, - "version": "2.6.1~ynh1", + "version": "2.6.1~ynh2", "url": "http://Discourse.org", "license": "GPL-2.0", "maintainer": { diff --git a/scripts/install b/scripts/install index 113f47e..60a0593 100644 --- a/scripts/install +++ b/scripts/install @@ -42,8 +42,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 22feb02..6e44d91 100644 --- a/scripts/restore +++ b/scripts/restore @@ -43,8 +43,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 dc182b8..6ec6cc1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,8 +25,12 @@ 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 1 ]; then + : +else + # Check memory requirements + check_memory_requirements_upgrade +fi #================================================= # CHECK VERSION