From 612c06dfbbcb7eb4b4cd839d1c5dde21620981cd Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:55:13 +0100 Subject: [PATCH] install mongodb for succesful restore --- scripts/restore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/restore b/scripts/restore index c604779..b4d3588 100755 --- a/scripts/restore +++ b/scripts/restore @@ -12,6 +12,16 @@ source /usr/share/yunohost/helpers ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password +#================================================= +# CREATE A MONGODB DATABASE +#================================================= +ynh_script_progression --message="Creating a MongoDB database..." + +db_name=$(ynh_sanitize_dbid --db_name=$app) +db_user=$db_name +ynh_app_setting_set --app=$app --key=db_name --value=$db_name +ynh_mongo_setup_db --db_user=$db_user --db_name=$db_name + #================================================= # STANDARD RESTORATION STEPS #=================================================