From e2636b15e4fd843d5b59392b13b3fe20bf206f8f Mon Sep 17 00:00:00 2001 From: douzeb Date: Thu, 8 Sep 2022 15:56:54 +0200 Subject: [PATCH] Remove swap requirement --- scripts/_common.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 10d395d..d2f8136 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 }