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:
parent
58e9a2b274
commit
08afa42eca
1 changed files with 3 additions and 1 deletions
|
@ -45,10 +45,12 @@ ynh_add_swap () {
|
||||||
local swap_size=0
|
local swap_size=0
|
||||||
fi
|
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 there's enough space for a swap, and no existing swap here
|
||||||
if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ]
|
if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ]
|
||||||
then
|
then
|
||||||
echo "Ça marche"
|
|
||||||
# Create file
|
# Create file
|
||||||
truncate -s 0 /swap_$app
|
truncate -s 0 /swap_$app
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue