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
|
# ADD SWAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
||||||
ynh_script_progression --message="Adding swap..." --weight=1
|
# ynh_script_progression --message="Adding swap..." --weight=1
|
||||||
ynh_add_swap --size=$swap_needed
|
# ynh_add_swap --size=$swap_needed
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A POSTGRESQL DATABASE
|
# CREATE A POSTGRESQL DATABASE
|
||||||
|
@ -69,7 +69,7 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP DATABASE
|
# SETUP DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setuping the database..." --weight=1
|
ynh_script_progression --message="Setting up the database..." --weight=1
|
||||||
|
|
||||||
setup_database
|
setup_database
|
||||||
|
|
||||||
|
|
|
@ -38,10 +38,10 @@ ynh_secure_remove --file="/var/log/$app.log"
|
||||||
# REMOVE SWAP
|
# REMOVE SWAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
||||||
ynh_script_progression --message="Removing swap..." --weight=1
|
# ynh_script_progression --message="Removing swap..." --weight=1
|
||||||
ynh_del_swap
|
# ynh_del_swap
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -12,10 +12,10 @@ source /usr/share/yunohost/helpers
|
||||||
# ADD SWAP
|
# ADD SWAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
||||||
ynh_script_progression --message="Adding swap..." --weight=1
|
# ynh_script_progression --message="Adding swap..." --weight=1
|
||||||
ynh_add_swap --size=$swap_needed
|
# ynh_add_swap --size=$swap_needed
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE APP MAIN DIR
|
# RESTORE THE APP MAIN DIR
|
||||||
|
|
|
@ -25,10 +25,10 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a
|
||||||
# ADD SWAP
|
# ADD SWAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
# if [ "${PACKAGE_CHECK_EXEC:-0}" -ne 1 ]; then
|
||||||
ynh_script_progression --message="Adding swap..." --weight=1
|
# ynh_script_progression --message="Adding swap..." --weight=1
|
||||||
ynh_add_swap --size=$swap_needed
|
# ynh_add_swap --size=$swap_needed
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Reference in a new issue