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-05 14:27:55 +07:00
parent 3b91ab5830
commit 4b11a2ba9a

View file

@ -66,14 +66,13 @@ ynh_app_setting_set --app=$app --key=language --value=$language_key
#=================================================
echo $(ynh_get_ram -t)
if [ $(ynh_get_ram -t) <= 2000 ]; then
if [ $(ynh_get_ram -t) -lt "2000" ]; then
ynh_script_progression --message="Adding swap to help building Photoprism..." --time --weight=1
ynh_add_swap --size=1000
swapFlag = true
else
swapFlag = false
fi
echo ynh_get_ram -t
#=================================================
# STANDARD MODIFICATIONS
@ -170,7 +169,7 @@ popd
# REMOVING SWAP IF NEEDED
#=================================================
if [ $swapFlag ]; then
if [ "$swapFlag" == true ]; then
ynh_del_swap
ynh_script_progression --message="Removing swap..." --time --weight=1
fi