Manage swap

This commit is contained in:
yalh76 2022-05-29 16:07:32 +02:00
parent d4a97c87b5
commit d017ace0ad
4 changed files with 20 additions and 4 deletions

View file

@ -141,7 +141,11 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding swap..."
ynh_add_swap --size=$swap_needed
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
:
else
ynh_add_swap --size=$swap_needed
fi
#=================================================
# BUILD APP

View file

@ -93,7 +93,11 @@ ynh_secure_remove --file="/var/log/$app.log"
#=================================================
ynh_script_progression --message="Removing swap..."
ynh_del_swap
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
:
else
ynh_del_swap
fi
#=================================================
# GENERIC FINALIZATION

View file

@ -100,7 +100,11 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
#=================================================
ynh_script_progression --message="Adding swap..."
ynh_add_swap --size=$swap_needed
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
:
else
ynh_add_swap --size=$swap_needed
fi
#=================================================
# BUILD APP

View file

@ -107,7 +107,11 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
#=================================================
ynh_script_progression --message="Adding swap..."
ynh_add_swap --size=$swap_needed
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
:
else
ynh_add_swap --size=$swap_needed
fi
#=================================================
# BUILD APP