diff --git a/scripts/ynh_add_swap b/scripts/ynh_add_swap index 8a57195..89c651e 100644 --- a/scripts/ynh_add_swap +++ b/scripts/ynh_add_swap @@ -47,7 +47,8 @@ ynh_add_swap () { # If there's enough space for a swap, and no existing swap here echo "I'm before" - if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ] + #if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ] + if [ ! -e /swap_$app ] then echo "I'm in !" # Preallocate space for the swap file, fallocate may sometime not be used, use dd instead in this case