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
01d7a4946e
commit
5232653761
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,8 @@ ynh_app_setting_set --app=$app --key=language --value=$language_key
|
|||
total_memory=$(ynh_get_ram --total)
|
||||
swap_needed=0
|
||||
|
||||
ynh_script_progression --message="The system currently has $(ynh_get_ram --total) Mo of RAM..."
|
||||
|
||||
# Need at least 2Go of RAM to build and run
|
||||
if [ $total_memory -lt 2048 ]; then
|
||||
swap_needed=$((2048 - total_memory))
|
||||
|
@ -78,6 +80,8 @@ if [ $swap_needed -gt 0 ]; then
|
|||
ynh_add_swap --size=$swap_needed
|
||||
fi
|
||||
|
||||
ynh_script_progression --message="The system now has $(ynh_get_ram --total) Mo of RAM..."
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue