diff --git a/scripts/restore b/scripts/restore index 93169e9..e2d7e9a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -30,12 +30,12 @@ sudo chown -R root: "$src_path" ### MySQL (remove if not used) ### # If a MySQL database is used: -# # Create and restore the database -# dbname=$app -# dbuser=$app -# dbpass=$(ynh_app_setting_get "$app" mysqlpwd) -# ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass" -# ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./dump.sql +# Create and restore the database +dbname=$app +dbuser=$app +dbpass=$(ynh_app_setting_get "$app" mysqlpwd) +ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass" +ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ./dump.sql ### MySQL end ### # Restore NGINX configuration