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
d9f3994e14
commit
de22cc744e
2 changed files with 5 additions and 7 deletions
|
@ -141,8 +141,8 @@ 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
|
||||||
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
|
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
|
||||||
|
|
||||||
ynh_exec_warn_less systemctl enable mongod --quiet
|
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
|
||||||
ynh_systemd_action --service_name=mongod --action=restart
|
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
|
||||||
|
|
||||||
mongo --eval "printjson(rs.initiate())"
|
mongo --eval "printjson(rs.initiate())"
|
||||||
|
|
||||||
|
@ -161,10 +161,8 @@ yunohost service add $app --description="Team collaboration communication platfo
|
||||||
ynh_script_progression --message="Starting a MongoDB service..." --weight=2
|
ynh_script_progression --message="Starting a MongoDB service..." --weight=2
|
||||||
|
|
||||||
# Start a mongod service
|
# Start a mongod service
|
||||||
ynh_exec_warn_less systemctl enable mongod --quiet
|
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
|
||||||
ynh_systemd_action --service_name=mongod --action=restart
|
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
|
||||||
|
|
||||||
#mongo --eval "printjson(rs.initiate())"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -153,7 +153,7 @@ yunohost service add $app --description="Team collaboration communication platfo
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=10
|
ynh_script_progression --message="Starting a systemd service..." --weight=10
|
||||||
|
|
||||||
ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd
|
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --log_path=systemd
|
||||||
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue