From 7dac3fa399ab5deb3c9436512d07d9ca2ec440e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 18 Jan 2024 20:10:57 +0100 Subject: [PATCH] fix upgrade undef var --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index c25873a..791d617 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,7 +25,7 @@ ynh_systemd_action --service_name="$app-jicofo" --action="stop" --log_path="/var ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 # If max_memory doesn't exist, create it and set to default 75 mb value -if [ -z "$max_memory" ]; then +if [ -z "${max_memory:-}" ]; then max_memory=200 ynh_app_setting_set --app="$app" --key=max_memory --value="$max_memory" fi