From 4b11a2ba9a42333817aacb9d7ce55594fc6d5a3f Mon Sep 17 00:00:00 2001 From: Limezy Date: Sun, 5 Jun 2022 14:27:55 +0700 Subject: [PATCH] Update install --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ca36ca5..24bbea4 100755 --- a/scripts/install +++ b/scripts/install @@ -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