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-05 16:43:24 +07:00
parent 93d98c6413
commit 5289557953

View file

@ -46,11 +46,10 @@ ynh_add_swap () {
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 "OK ici"
# Create file
truncate -s 0 /swap_$app