From 28180eb972156d1cc7e31d9d1934e4f15b45b41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 20 Mar 2024 22:52:21 +0100 Subject: [PATCH] Disable swap for now --- scripts/install | 10 +++++----- scripts/remove | 8 ++++---- scripts/restore | 8 ++++---- scripts/upgrade | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/install b/scripts/install index 43a2343..5d80586 100644 --- a/scripts/install +++ b/scripts/install @@ -17,10 +17,10 @@ preinstall=0 # ADD SWAP #================================================= -if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then - ynh_script_progression --message="Adding swap..." --weight=1 - ynh_add_swap --size=$swap_needed -fi +# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then +# ynh_script_progression --message="Adding swap..." --weight=1 +# ynh_add_swap --size=$swap_needed +# fi #================================================= # CREATE A POSTGRESQL DATABASE @@ -69,7 +69,7 @@ popd #================================================= # SETUP DATABASE #================================================= -ynh_script_progression --message="Setuping the database..." --weight=1 +ynh_script_progression --message="Setting up the database..." --weight=1 setup_database diff --git a/scripts/remove b/scripts/remove index f6d3408..2f1994a 100644 --- a/scripts/remove +++ b/scripts/remove @@ -38,10 +38,10 @@ ynh_secure_remove --file="/var/log/$app.log" # REMOVE SWAP #================================================= -if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then - ynh_script_progression --message="Removing swap..." --weight=1 - ynh_del_swap -fi +# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then +# ynh_script_progression --message="Removing swap..." --weight=1 +# ynh_del_swap +# fi #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 31f4a95..798f23d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -12,10 +12,10 @@ source /usr/share/yunohost/helpers # ADD SWAP #================================================= -if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then - ynh_script_progression --message="Adding swap..." --weight=1 - ynh_add_swap --size=$swap_needed -fi +# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then +# ynh_script_progression --message="Adding swap..." --weight=1 +# ynh_add_swap --size=$swap_needed +# fi #================================================= # RESTORE THE APP MAIN DIR diff --git a/scripts/upgrade b/scripts/upgrade index 9ed854e..22862f6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,10 +25,10 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a # ADD SWAP #================================================= -if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then - ynh_script_progression --message="Adding swap..." --weight=1 - ynh_add_swap --size=$swap_needed -fi +# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then +# ynh_script_progression --message="Adding swap..." --weight=1 +# ynh_add_swap --size=$swap_needed +# fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE