From 60737ae6720a88a464ec603818bc0e64d4ba44fc Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 3 May 2019 13:07:08 +0200 Subject: [PATCH] Put db_pwd out of the condition --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2875fc6..3614a99 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -135,11 +135,12 @@ ynh_add_fpm_config # UPGRADE THE DATABASE #================================================= +db_pwd=$(ynh_app_setting_get $app mysqlpwd) + if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading database..." --weight=2 - db_pwd=$(ynh_app_setting_get $app mysqlpwd) # Handle upgrade from a version before latest version # Ignore warnings and failures that will occur if already on latest version ynh_replace_string "phpmyadmin" "$db_name" $final_path/sql/upgrade_column_info_4_3_0+.sql