1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

Update restore

This commit is contained in:
ericgaspar 2023-06-04 08:54:10 +02:00
parent 5c4ab8e5d7
commit 1e755c713d

View file

@ -55,6 +55,7 @@ ynh_install_mongo
#=================================================
ynh_script_progression --message="Restoring the MongoDB database..."
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_pwd=$(ynh_app_setting_get --app=$app --key=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