From f503649684ac3d213c316ed4f717eda15adfb0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 13 Aug 2023 11:59:06 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 407279ea..749b6aad 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,6 +29,11 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +# If random_string doesn't exist, create it +if [ -z "$random_string" ]; then + random_string="$(ynh_string_random --length=48)" + ynh_app_setting_set --app=$app --key=random_string --value=$random_string +fi # If fpm_footprint doesn't exist, create it if [ -z "$fpm_footprint" ]; then