diff --git a/scripts/_common.sh b/scripts/_common.sh index 5b9f7ca..5332d6c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -32,10 +32,10 @@ is_swap_present() { [ $(awk '/^SwapTotal:/{print $2}' /proc/meminfo) -gt 0 ] } -# Returns true if swappiness higher than 50 +# Returns true if swappiness higher than 10 # usage: is_swappiness_sufficient is_swappiness_sufficient() { - [ $(cat /proc/sys/vm/swappiness) -gt 50 ] + [ $(cat /proc/sys/vm/swappiness) -gt 10 ] } # Returns true if specified free memory is available (RAM + swap) @@ -53,7 +53,7 @@ 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" + ynh_die --message="Your swappiness must be higher than 10; please see https://en.wikipedia.org/wiki/Swappiness" elif ! is_memory_available 1000000 ; then ynh_die --message="You must have a minimum of 1Gb available memory (RAM+swap) for the installation" fi