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:
parent
65521be052
commit
612c06dfbb
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue