Disable swap for now

This commit is contained in:
Félix Piédallu 2024-03-20 22:52:21 +01:00
parent dea3a04fae
commit 28180eb972
4 changed files with 17 additions and 17 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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