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
5289557953
commit
38cf9c5d9a
1 changed files with 3 additions and 2 deletions
|
@ -45,9 +45,10 @@ ynh_add_swap () {
|
|||
local swap_size=0
|
||||
fi
|
||||
|
||||
echo "Tests valeurs"
|
||||
echo $swap_size
|
||||
echo $()
|
||||
# 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
|
||||
echo "OK ici"
|
||||
# Create file
|
||||
|
|
Loading…
Add table
Reference in a new issue