1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
This commit is contained in:
ericgaspar 2021-07-24 22:53:25 +02:00
parent c6a9928471
commit 531857fd76
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 3 deletions

View file

@ -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__

View file

@ -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