From 6377755b7ca876f01315de6701792070e8732f49 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 30 May 2020 15:55:33 +0200 Subject: [PATCH] Missing ynh_psql_test_if_first_run during upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 52c9add..f73a794 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,6 +58,7 @@ fi if [ -z "$db_pwd" ]; then db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) # Fix old db_pwd if [ -z "$db_pwd" ]; then + ynh_psql_test_if_first_run db_name=$(ynh_sanitize_dbid --db_name="$app") db_user=$db_name # Initialize database and store postgres password for upgrade