From 9c0f01e0121d1e51fa4249bd836758af208d4548 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 25 Mar 2020 19:58:57 +0100 Subject: [PATCH] rollback swap removal for package_check --- scripts/install | 5 +---- scripts/remove | 5 +---- scripts/restore | 5 +---- scripts/upgrade | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/scripts/install b/scripts/install index 0929f8c..32704ba 100644 --- a/scripts/install +++ b/scripts/install @@ -125,10 +125,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= ynh_print_info --message="Adding swap..." -# Don't create swap during package_check -if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then - ynh_add_swap --size=512 -fi +ynh_add_swap --size=512 #================================================= # CREATE DRUSH ALIAS diff --git a/scripts/remove b/scripts/remove index 1bd5870..b63c2b9 100644 --- a/scripts/remove +++ b/scripts/remove @@ -73,10 +73,7 @@ ynh_remove_nginx_config #================================================= ynh_print_info --message="Removing swap..." -# Don't delete not existing swap during package_check -if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then - ynh_del_swap -fi +ynh_del_swap #================================================= # SPECIFIC REMOVE diff --git a/scripts/restore b/scripts/restore index 5b915bd..ef098fa 100644 --- a/scripts/restore +++ b/scripts/restore @@ -127,10 +127,7 @@ ynh_restore_file --origin_path="/etc/cron.d/$app" #================================================= ynh_print_info --message="Adding swap..." -# Don't create swap during package_check -if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then - ynh_add_swap --size=512 -fi +ynh_add_swap --size=512 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 8b4c73f..6abbdea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -131,10 +131,7 @@ ynh_add_fpm_config --phpversion="7.3" #================================================= ynh_print_info --message="Adding swap..." -# Don't create swap during package_check -if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then - ynh_add_swap --size=512 -fi +ynh_add_swap --size=512 #================================================= # UPGRADE COMPOSER