1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Disable swap during package_check

This commit is contained in:
yalh76 2022-08-31 04:24:01 +02:00
parent 783ebf3512
commit 685d56e07a
4 changed files with 12 additions and 4 deletions

View file

@ -133,7 +133,9 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding swap..."
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=$swap_needed
fi
#=================================================
# CREATE DATA DIRECTORY

View file

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

View file

@ -191,7 +191,9 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
#=================================================
ynh_script_progression --message="Adding swap..."
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=$swap_needed
fi
#=================================================
# RESTORE SYSTEMD

View file

@ -304,7 +304,9 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding swap..."
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
ynh_add_swap --size=$swap_needed
fi
#=================================================
# UPDATE A CONFIG FILE