From 2dd3b7da8fd10f7f54f85bfcd9e507d24eb291d8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 25 Apr 2020 22:41:57 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7e75235..7a60e4f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,7 +137,7 @@ if [ $need_migration_from_sqlite_to_psql -eq 1 ]; then db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name # Initialize database and store postgres password for upgrade - ynh_psql_setup_db --db_user=user --db_name=name + ynh_psql_setup_db --db_user=$db_user --db_name=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) # Password created in ynh_psql_setup_db function fi