diff --git a/scripts/ynh_add_swap b/scripts/ynh_add_swap index 2fd2d8c..ed43730 100644 --- a/scripts/ynh_add_swap +++ b/scripts/ynh_add_swap @@ -48,9 +48,11 @@ ynh_add_swap () { # If there's enough space for a swap, and no existing swap here if [ $swap_size -ne 0 ] && [ ! -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 if ! fallocate -l ${swap_size}K /swap_$app then + echo "I'm also in !" dd if=/dev/zero of=/swap_$app bs=1024 count=${swap_size} fi chmod 0600 /swap_$app