1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

Update restore

This commit is contained in:
Éric Gaspar 2023-03-23 21:43:55 +01:00
parent c59f435c98
commit 76877d1110

View file

@ -45,6 +45,8 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
ynh_script_progression --message="Restoring the MongoDB database..." ynh_script_progression --message="Restoring the MongoDB database..."
db_name=$(ynh_sanitize_dbid --db_name=$app)
db_user=$db_name
ynh_mongo_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_mongo_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
ynh_mongo_restore_db --database="$db_name" < ./dump.bson ynh_mongo_restore_db --database="$db_name" < ./dump.bson