From 08afa42ecac7850c63f4e8a8cabe37236effd798 Mon Sep 17 00:00:00 2001 From: Limezy Date: Sun, 5 Jun 2022 15:48:27 +0700 Subject: [PATCH] Update ynh_add_swap --- scripts/ynh_add_swap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ynh_add_swap b/scripts/ynh_add_swap index 566a153..1ad0f13 100644 --- a/scripts/ynh_add_swap +++ b/scripts/ynh_add_swap @@ -45,10 +45,12 @@ ynh_add_swap () { local swap_size=0 fi + echo "Tests valeurs" + echo $($swap_size -ne 0) + echo $(! -e /swap_$app) # If there's enough space for a swap, and no existing swap here if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ] then - echo "Ça marche" # Create file truncate -s 0 /swap_$app