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
c6a9928471
commit
531857fd76
2 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,8 @@ ExecStart=__YNH_NODE__ main.js
|
|||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=__APP__
|
||||
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
|
||||
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
|
||||
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=01-rs
|
||||
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=01-rs
|
||||
Environment=ROOT_URL=https://__DOMAIN____PATH__
|
||||
Environment=PORT=__PORT__
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ popd
|
|||
ynh_script_progression --message="Configuring a mongod..." --weight=1
|
||||
|
||||
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: 01-rs/" /etc/mongod.conf
|
||||
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
|
||||
|
||||
ynh_exec_warn_less systemctl enable mongod --quiet
|
||||
|
|
Loading…
Add table
Reference in a new issue