aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index c5be012..9e02c01 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -9,7 +9,6 @@
source _common.sh
source ynh_install_ruby__2
source ynh_add_swap
-source ynh_check_ram
source /usr/share/yunohost/helpers
#=================================================
@@ -231,8 +230,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
ynh_script_progression --message="Adding swap if needed..." --weight=7
-total_memory=$(ynh_check_ram)
-total_swap=$(ynh_check_ram --only_swap)
+total_memory=$(ynh_get_ram --total)
swap_needed=0
if [ $total_memory -lt 2560 ]; then