mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Remove swap requirement
This commit is contained in:
parent
ec97472311
commit
e2636b15e4
1 changed files with 6 additions and 5 deletions
|
@ -50,11 +50,12 @@ is_memory_available() {
|
|||
# Checks discourse install memory requirements
|
||||
# terminates installation if requirements not met
|
||||
check_memory_requirements() {
|
||||
if ! is_swap_present ; then
|
||||
ynh_die --message="You must have a swap partition in order to install and use this application"
|
||||
elif ! is_swappiness_sufficient ; then
|
||||
ynh_die --message="Your swappiness must be higher than 50; please see https://en.wikipedia.org/wiki/Swappiness"
|
||||
elif ! is_memory_available 1000000 ; then
|
||||
# if ! is_swap_present ; then
|
||||
# ynh_die --message="You must have a swap partition in order to install and use this application"
|
||||
# elif ! is_swappiness_sufficient ; then
|
||||
# ynh_die --message="Your swappiness must be higher than 50; please see https://en.wikipedia.org/wiki/Swappiness"
|
||||
# el
|
||||
if ! is_memory_available 1000000 ; then
|
||||
ynh_die --message="You must have a minimum of 1Gb available memory (RAM+swap) for the installation"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue