1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00

Manage swap for package_check

This commit is contained in:
yalh76 2020-03-25 10:02:49 +01:00
parent 044a29a9ab
commit 9b94017a62
4 changed files with 16 additions and 4 deletions

View file

@ -125,7 +125,10 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#================================================= #=================================================
ynh_print_info --message="Adding swap..." ynh_print_info --message="Adding swap..."
ynh_add_swap --size=512 # Don't create swap during package_check
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=512
fi
#================================================= #=================================================
# CREATE DRUSH ALIAS # CREATE DRUSH ALIAS

View file

@ -73,7 +73,10 @@ ynh_remove_nginx_config
#================================================= #=================================================
ynh_print_info --message="Removing swap..." ynh_print_info --message="Removing swap..."
ynh_del_swap # Don't delete not existing swap during package_check
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_del_swap
fi
#================================================= #=================================================
# SPECIFIC REMOVE # SPECIFIC REMOVE

View file

@ -127,7 +127,10 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
#================================================= #=================================================
ynh_print_info --message="Adding swap..." ynh_print_info --message="Adding swap..."
ynh_add_swap --size=512 # Don't create swap during package_check
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=512
fi
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -131,7 +131,10 @@ ynh_add_fpm_config --phpversion="7.3"
#================================================= #=================================================
ynh_print_info --message="Adding swap..." ynh_print_info --message="Adding swap..."
ynh_add_swap --size=512 # Don't create swap during package_check
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=512
fi
#================================================= #=================================================
# UPGRADE COMPOSER # UPGRADE COMPOSER