diff --git a/conf/rocketchat_ldap.js b/conf/rocketchat_ldap.js index 62293ff..23de9a0 100644 --- a/conf/rocketchat_ldap.js +++ b/conf/rocketchat_ldap.js @@ -1,4 +1,4 @@ -use __DB_NAME__ +use rocketchat db.rocketchat_settings.update( diff --git a/scripts/restore b/scripts/restore index 0b97426..edf08ba 100644 --- a/scripts/restore +++ b/scripts/restore @@ -83,7 +83,7 @@ ynh_install_mongo #================================================= # RESTORE THE MONGODB DATABASE #================================================= -ynh_script_progression --message="Restoring the MongoDB database..." +ynh_script_progression --message="Restoring the MongoDB database..." --weight=3 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 @@ -92,7 +92,7 @@ ynh_mongo_restore_db --database="$db_name" < ./dump.bson #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_script_progression --message="Configuring a mongod..." --weight=1 +ynh_script_progression --message="Configuring a mongod..." --weight=3 sed -i "s/^# engine:/ engine: wiredTiger/" /etc/mongod.conf sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf @@ -129,7 +129,7 @@ yunohost service add $app --description="Team collaboration communication platfo #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=1 +ynh_script_progression --message="Starting a systemd service..." --weight=5 # Start a mongod service ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet