1
0
Fork 0
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:
Limezy 2022-06-07 08:08:09 +07:00
parent 01d7a4946e
commit 5232653761

View file

@ -68,6 +68,8 @@ ynh_app_setting_set --app=$app --key=language --value=$language_key
total_memory=$(ynh_get_ram --total) total_memory=$(ynh_get_ram --total)
swap_needed=0 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 # Need at least 2Go of RAM to build and run
if [ $total_memory -lt 2048 ]; then if [ $total_memory -lt 2048 ]; then
swap_needed=$((2048 - total_memory)) swap_needed=$((2048 - total_memory))
@ -78,6 +80,8 @@ if [ $swap_needed -gt 0 ]; then
ynh_add_swap --size=$swap_needed ynh_add_swap --size=$swap_needed
fi fi
ynh_script_progression --message="The system now has $(ynh_get_ram --total) Mo of RAM..."
#================================================= #=================================================
# STANDARD MODIFICATIONS # STANDARD MODIFICATIONS
#================================================= #=================================================