From 2c9111ed3584ca9874363cfa6b222c56bc5361df Mon Sep 17 00:00:00 2001 From: Jyhem Date: Fri, 23 Jun 2023 17:16:08 +0200 Subject: [PATCH] [FIX] Don't fail when new variable is unset --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index fd2b539..c8f39f4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,6 +38,12 @@ if [ -z "${fpm_usage:-}" ]; then ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage fi +# If release_cycle doesn't exist, create it +if [ -z "${release_cycle:-}" ]; then + release_cycle=longterm + ynh_app_setting_set --app=$app --key=release_cycle --value=$release_cycle +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================