mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Update install
This commit is contained in:
parent
60f4aa8068
commit
669152ab2c
1 changed files with 3 additions and 3 deletions
|
@ -132,12 +132,12 @@ 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 mongod --quiet
|
||||||
ynh_systemd_action --service_name=mongod --action=restart
|
ynh_systemd_action --service_name=mongod --action=restart
|
||||||
|
|
||||||
mongo --eval "printjson(rs.initiate())"
|
#mongo --eval "printjson(rs.initiate())"
|
||||||
|
|
||||||
sleep 10
|
#sleep 10
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
Loading…
Add table
Reference in a new issue