diff --git a/scripts/upgrade b/scripts/upgrade index ae2fed4..480353a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,8 +148,10 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1 if [ $database = "mysql" ]; then db_type=0 + db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) elif [ $database = "postgresql" ]; then db_type=1 + db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) else ynh_die --message="Some problem occured in creating the database, contact maintainer" fi