1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00

Update ynh_add_swap

This commit is contained in:
Limezy 2022-06-06 01:21:55 +07:00
parent f119a2d00e
commit 1ab55445cc

View file

@ -47,7 +47,8 @@ ynh_add_swap () {
# If there's enough space for a swap, and no existing swap here # If there's enough space for a swap, and no existing swap here
echo "I'm before" 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 then
echo "I'm in !" echo "I'm in !"
# Preallocate space for the swap file, fallocate may sometime not be used, use dd instead in this case # Preallocate space for the swap file, fallocate may sometime not be used, use dd instead in this case