Fix upgrade from previous versions

This commit is contained in:
Jean-Baptiste Holcroft
2017-11-16 23:23:51 +01:00
parent 21cf715388
commit 333e0973e6
4 changed files with 23 additions and 11 deletions

View File

@@ -59,7 +59,7 @@ ynh_restore_file "$final_path"
# RESTORE THE MYSQL DATABASE
#=================================================
db_pwd=$(ynh_app_setting_get "$app" db_pwd)
db_pwd=$(ynh_app_setting_get "$app" mysqlpwd)
ynh_mysql_setup_db "$db_name" "$db_name" "$db_pwd"
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < ./db.sql