mirror of
https://github.com/YunoHost-Apps/my_capsule_ynh.git
synced 2024-09-03 19:46:21 +02:00
Fix restore, mysql db is not handled by core
This commit is contained in:
parent
f2a76afefd
commit
22a435d810
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ chown -R $app:www-data "$install_dir"
|
|||
if [ $with_mysql -eq 1 ]; then
|
||||
ynh_script_progression --message="Restoring the MySQL database..."
|
||||
|
||||
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue