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

install mongodb for succesful restore

This commit is contained in:
Thomas 2023-11-27 16:55:13 +01:00 committed by GitHub
parent 65521be052
commit 612c06dfbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,16 @@ source /usr/share/yunohost/helpers
ynh_app_setting_set --app=$app --key=web_api_password --value=$web_api_password 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 # STANDARD RESTORATION STEPS
#================================================= #=================================================