mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
Update install
This commit is contained in:
parent
b8cf96e35a
commit
01d7a4946e
1 changed files with 3 additions and 3 deletions
|
@ -68,9 +68,9 @@ ynh_app_setting_set --app=$app --key=language --value=$language_key
|
|||
total_memory=$(ynh_get_ram --total)
|
||||
swap_needed=0
|
||||
|
||||
# Need at least 1.5Go of RAM to build and run
|
||||
if [ $total_memory -lt 1536 ]; then
|
||||
swap_needed=$((1536 - total_memory))
|
||||
# Need at least 2Go of RAM to build and run
|
||||
if [ $total_memory -lt 2048 ]; then
|
||||
swap_needed=$((2048 - total_memory))
|
||||
fi
|
||||
|
||||
if [ $swap_needed -gt 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue