Better ynh_add_swap

This commit is contained in:
yalh76 2022-06-01 23:17:58 +02:00
parent 95c40ad90e
commit 07d976661e
5 changed files with 5 additions and 5 deletions

View file

@ -16,7 +16,7 @@
setup_public=1
upgrade=1
# 12.0-6
upgrade=1 from_commit=2cfdbc229faa8700873e681a01f823c32475cca8
# upgrade=1 from_commit=2cfdbc229faa8700873e681a01f823c32475cca8
backup_restore=1
multi_instance=1
port_already_use=0

View file

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

View file

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

View file

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

View file

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