Merge pull request #227 from Salamandar/duplicate_mysql

oops, restore script restores the mysql database twice
This commit is contained in:
Alexandre Aubin 2024-01-15 22:59:55 +01:00 committed by GitHub
commit 261e458c90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,14 +77,6 @@ ynh_restore_file --origin_path="/etc/$app/"
### For other apps, the simple way is better:
ynh_restore_file --origin_path="/var/log/$app/"
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# GENERIC FINALIZATION
#=================================================