mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
Disable swap for now
This commit is contained in:
parent
dea3a04fae
commit
28180eb972
4 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue