From 1a0e23b8a47720da5148e7452dc97ca366825870 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 31 Jan 2021 11:30:25 +0100 Subject: [PATCH] Fix backward compatibilty for db_name --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 90b424c..d1df4cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,6 +73,11 @@ if [ -z "$version" ]; then ynh_app_setting_set --app=$app --key=version --value=$version fi +if [ -z "$db_name" ]; then + db_name="$app" + ynh_app_setting_set --app=$app --key=db_name --value=$db_name +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================