mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fix
This commit is contained in:
parent
79c1449e3e
commit
a2f56ab301
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
use __DB_NAME__
|
use rocketchat
|
||||||
|
|
||||||
|
|
||||||
db.rocketchat_settings.update(
|
db.rocketchat_settings.update(
|
||||||
|
|
|
@ -83,7 +83,7 @@ ynh_install_mongo
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MONGODB DATABASE
|
# 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)
|
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_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
|
# 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/^# engine:/ engine: wiredTiger/" /etc/mongod.conf
|
||||||
sed -i "s/^#replication:/replication:\n replSetName: rs01/" /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
|
# 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
|
# Start a mongod service
|
||||||
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
|
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
|
||||||
|
|
Loading…
Add table
Reference in a new issue