1
0
Fork 0
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:
Salamandar 2024-01-26 23:28:30 +01:00
parent f2a76afefd
commit 22a435d810

View file

@ -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